/* =====================================================
   SEO FOOTER STYLES
   Dynamic SEO content section for sports pages
   ===================================================== */

.seo-footer {
    background: #1a1d23;
    color: #b8c4d4;
    padding: 40px 20px;
    margin-top: auto;
    width: 100%;
    align-self: stretch;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content area should grow to push footer down */
.content,
.event-page,
.cricket-stats-page,
.tournament-page,
main {
    flex: 1 0 auto;
}

/* Ensure header, toolbar, etc. don't shrink */
header,
.sports-strip,
.toolbar,
.pagination,
.ad-container {
    flex-shrink: 0;
}

.seo-footer-inner,
.seo-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
    align-items: stretch;
}

.seo-footer-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.seo-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.seo-entity-info,
.seo-about {
    max-width: 100%;
    text-align: left;
    width: 100%;
}

.seo-entity-title,
.seo-entity-desc {
    text-align: left;
}

.seo-entity-extra {
    color: #9aa5b8;
    margin-top: 8px;
}

.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: #9aa5b8;
    flex-wrap: wrap;
    text-align: center;
}

.footer-age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5c16c;
    background: rgba(245, 193, 108, 0.1);
    font-weight: 600;
}

.seo-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* About Section */
.seo-about {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.seo-about h2 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.seo-about p {
    color: #9aa5b8;
    margin-bottom: 10px;
}

.seo-about p:last-child {
    margin-bottom: 0;
}

.seo-about a {
    color: #4db8ff;
    text-decoration: none;
}

.seo-about a:hover {
    text-decoration: underline;
}

/* Links Grid Section */
.seo-links-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.seo-links-column h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.seo-footer .seo-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 8px;
}

.seo-footer .seo-links-column li {
    margin: 0;
    display: block !important;
    width: 100%;
}

.seo-footer .seo-links-column.is-empty {
    display: none;
}

.seo-footer .seo-links-column a {
    color: #7eb8e8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    display: block;
    width: 100%;
}

.seo-links-column a:hover {
    color: #4db8ff;
    text-decoration: underline;
}

/* Shared header account icon reset (prevents default white button bg) */
.account-container #account-btn {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    appearance: none;
}

.account-container #account-btn:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Today's Competitions Section */
.seo-competitions {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.seo-competitions h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.seo-footer .seo-competitions-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    width: 100%;
}

.seo-comp-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #b8c4d4;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: background 0.2s ease, color 0.2s ease;
}

.seo-comp-tag:hover {
    background: rgba(77, 184, 255, 0.15);
    color: #4db8ff;
}

/* Language Links */
.seo-languages {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-languages span {
    color: #6c7a90;
    margin-right: 8px;
}

.seo-languages a {
    color: #7eb8e8;
    text-decoration: none;
    margin-right: 12px;
    font-size: 13px;
}

.seo-languages a:hover {
    color: #4db8ff;
    text-decoration: underline;
}

/* Disclaimer / Privacy */
.seo-disclaimer {
    color: #6c7a90;
    font-size: 12px;
    line-height: 1.6;
}

.seo-disclaimer a {
    color: #7eb8e8;
    text-decoration: underline;
}

/* Team/Tournament Specific Styles */
.seo-entity-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-info-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-info-card h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.seo-info-card p,
.seo-info-card ul {
    color: #9aa5b8;
    font-size: 13px;
}

.seo-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-info-card li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.seo-info-card li:last-child {
    border-bottom: none;
}

/* Event/Match Specific */
.seo-match-context {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-match-context h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.seo-match-context p {
    color: #9aa5b8;
    margin-bottom: 8px;
}

/* Trending Section */
.seo-trending {
    margin-bottom: 25px;
}

.seo-trending h3 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.seo-trending-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.seo-trending-item {
    background: linear-gradient(135deg, rgba(77, 184, 255, 0.1), rgba(77, 184, 255, 0.05));
    color: #7eb8e8;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid rgba(77, 184, 255, 0.2);
    transition: all 0.2s ease;
}

.seo-trending-item:hover {
    background: linear-gradient(135deg, rgba(77, 184, 255, 0.2), rgba(77, 184, 255, 0.1));
    color: #4db8ff;
    border-color: rgba(77, 184, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .seo-footer {
        padding: 30px 16px;
    }

    .seo-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    .seo-entity-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .seo-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px;
    }

    .seo-links-column h3 {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .seo-footer .seo-links-column a {
        font-size: 12px;
    }

    .seo-competitions-list {
        gap: 6px;
    }

    .seo-comp-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Telegram CTA */
.seo-telegram-cta {
    text-align: center;
    padding: 16px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.seo-telegram-cta a {
    color: #7ec8e3;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.seo-telegram-cta a:hover {
    color: #fff;
    text-decoration: underline;
}
