/* Backstretch CMS Styles */

.backstretch-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.bs-header-row {
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.backstretch-header {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    color: #00c853;
    font-family: "Consolas", "Monaco", monospace;
}

.bs-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.bs-tagline {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.bs-filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    padding: 1rem 1.25rem;
    background: #0f0f0f;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    margin-bottom: 2rem;
    align-items: center;
}

.bs-search-form {
    margin-left: auto;
}

.bs-search-input {
    background: transparent;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: #ccc;
    width: 160px;
    transition: all 0.15s;
}
.bs-search-input:focus {
    outline: none;
    border-color: #00c853;
    width: 200px;
}
.bs-search-input::placeholder {
    color: #555;
}

.bs-filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.bs-filter-label {
    font-size: 0.75rem;
    color: #555;
    font-family: "Consolas", "Monaco", monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.25rem;
}

.bs-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.15s;
    border: 1px solid #222;
    background: transparent;
    color: #888;
}
.bs-pill:hover { color: #fff; text-decoration: none; border-color: #444; }
.bs-pill .league-icon { margin-right: 5px; }
.bs-pill.active { background: #00c853; border-color: #00c853; color: #000; font-weight: 600; }
.bs-pill-nba.active { background: #c9082a; border-color: #c9082a; color: #fff; }
.bs-pill-nfl.active { background: #013369; border-color: #013369; color: #fff; }
.bs-pill-mlb.active { background: #002d72; border-color: #002d72; color: #fff; }
.bs-pill-nhl.active { background: #111; border-color: #fff; color: #fff; }
.bs-pill-cat.active { background: #ff9800; border-color: #ff9800; color: #000; }

.bs-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 0.75rem;
    background: #1a1a1a;
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bs-tag .league-icon { margin-right: 4px; height: 12px; }
.bs-tag-nba { background: rgba(201,8,42,0.2); color: #ff6b7a; }
.bs-tag-nfl { background: rgba(1,51,105,0.3); color: #6b9fff; }
.bs-tag-mlb { background: rgba(0,45,114,0.3); color: #6b9fff; }
.bs-tag-nhl { background: rgba(255,255,255,0.08); color: #ccc; }

.bs-post-list {
    display: flex;
    flex-direction: column;
}

.bs-post-row {
    display: flex;
    align-items: flex-start;
    padding: 2rem 0;
    border-bottom: 1px solid #1a1a1a;
    gap: 1.5rem;
}

.bs-post-row:first-child {
    padding-top: 0;
}

.bs-post-num {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.85rem;
    color: #00c853;
    opacity: 0.6;
    flex-shrink: 0;
    padding-top: 0.25rem;
}

.bs-post-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    transition: border-color 0.2s;
}

.bs-post-thumb:hover {
    border-color: #00c853;
}

.bs-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bs-post-content {
    flex: 1;
    min-width: 0;
}

.bs-post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bs-post-date {
    font-size: 0.8rem;
    color: #555;
    font-family: "Consolas", "Monaco", monospace;
}

.bs-post-title {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    font-weight: 600;
}

.bs-post-title a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.15s;
}

.bs-post-title a:hover {
    color: #00c853;
}

.bs-post-excerpt {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.bs-read-link {
    font-size: 0.85rem;
    color: #00c853;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.15s;
}

.bs-read-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #00c853;
}

.bs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    font-family: "Consolas", "Monaco", monospace;
}

.bs-page-link {
    color: #00c853;
    text-decoration: none;
    font-size: 0.9rem;
}

.bs-page-link:hover {
    text-decoration: underline;
    color: #00c853;
}

.bs-page-info {
    color: #555;
    font-size: 0.85rem;
}

/* Article page */
.backstretch-article-page {
    max-width: 900px;
}

.backstretch-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.backstretch-article-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 6px;
}

.backstretch-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.backstretch-meta i {
    margin-right: 4px;
    opacity: 0.6;
}

.backstretch-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
}

.backstretch-content h1,
.backstretch-content h2,
.backstretch-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #f0f0f0;
}

.backstretch-content p {
    margin-bottom: 1.2em;
}

.backstretch-content a {
    color: #00c853;
}

.backstretch-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1em 0;
}

.backstretch-content blockquote {
    border-left: 3px solid #00c853;
    padding-left: 1.25rem;
    margin: 1.5em 0;
    color: #888;
    font-style: italic;
}

.backstretch-content pre,
.backstretch-content code {
    background: #0f0f0f;
    border-radius: 4px;
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    font-family: "Consolas", "Monaco", monospace;
}

.backstretch-content pre {
    padding: 1em;
    overflow-x: auto;
    border: 1px solid #1a1a1a;
}

.backstretch-share .btn {
    margin-right: 0.5rem;
}

.backstretch-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
}

.backstretch-related h4 {
    color: #00c853;
    margin-bottom: 1.5rem;
    font-family: "Consolas", "Monaco", monospace;
}

.backstretch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.backstretch-related-card {
    display: flex;
    align-items: center;
    background: #0f0f0f;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: border-color 0.2s;
}
.backstretch-related-card:hover {
    border-color: #00c853;
    text-decoration: none;
}
.backstretch-related-card img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
}
.backstretch-related-info {
    padding: 0.75rem 1rem;
}
.backstretch-related-info .title {
    color: #f0f0f0;
    display: block;
    font-weight: 500;
    line-height: 1.3;
    font-size: 0.9rem;
}
.backstretch-related-info small {
    color: #555;
    font-family: "Consolas", "Monaco", monospace;
}

/* Recommendations widget for event pages */
.backstretch-recommendations {
    background: #0f0f0f;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #1a1a1a;
}

.backstretch-recommendations h5 {
    font-size: 0.85rem;
    color: #00c853;
    margin-bottom: 0.75rem;
    font-family: "Consolas", "Monaco", monospace;
}

.backstretch-rec-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a1a;
}

.backstretch-rec-item:last-child {
    border-bottom: none;
}

.backstretch-rec-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.backstretch-rec-item a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.3;
}

.backstretch-rec-item a:hover {
    color: #00c853;
}

@media (max-width: 768px) {
    .backstretch-page { padding: 1rem; }
    .backstretch-header { font-size: 1.75rem; }
    .bs-post-row { flex-direction: column; gap: 1rem; padding: 1.5rem 0; }
    .bs-post-num { display: none; }
    .bs-post-thumb { width: 100%; height: 180px; }
    .bs-post-title { font-size: 1.25rem; }
    .backstretch-article-title { font-size: 1.75rem; }
    .backstretch-related-card { flex-direction: column; }
    .backstretch-related-card img { width: 100%; height: 100px; }
}
