/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #ff4d4d;
    --text-color: #212529;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Base styles */
body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header styles */
header {
    background: var(--card-color);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.site-branding {
    text-align: center;
    margin-bottom: 1rem;
}

.site-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: block;
}

nav ul li a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

/* Header Video (shows on non-home pages) */
.header-video {
    position: absolute;
    right: 15rem;
    top: 0.5rem;
    height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .header-video {
        height: 120px;
        right: 3rem;
        top: 1rem;
    }
}

@media (max-width: 768px) {
    .header-video {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-video {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
    border-radius: 12px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-style: italic;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .hero-video {
        max-width: 280px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* Page Layout */
.page-layout {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--card-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-color);
    position: sticky;
    top: 90px;
    animation: fadeIn 0.5s ease;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.filter-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    min-width: 0;
}

label {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

select {
    padding: 0.6rem 1rem;
    border: 2px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

select:hover, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
    outline: none;
}

/* Takes Container */
.takes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 1.5rem;
    padding: 0.5rem;
    justify-content: center;
}

.take {
    background: var(--card-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.4s ease;
    position: relative;
    width: 300px;
    min-height: 300px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.take:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.take-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.take-img-container {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.take img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.take-info {
    flex: 1;
}

.take h2 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.take-content {
    flex: 1;
    margin-bottom: 1rem;
    position: relative;
}

.take blockquote {
    font-weight: bold;
    color: #333;
    padding: 0.75rem 1.25rem;
    background: var(--background-color);
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 1rem;
    position: relative;
    border: none;
}

.take blockquote::before,
.take blockquote::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 40px;
    background-image: url('../images/quoter.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.take blockquote::before {
    left: -10px;
    top: -20px;
}

.take blockquote::after {
    right: -10px;
    bottom: -40px;
    transform: rotate(180deg);
}

.take p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
}

.take .network {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.take .teams {
    font-style: italic;
    color: #495057;
    font-weight: bold;
}

.take-footer {
    margin-top: auto;
}

.source {
    margin-top: 0.75rem;
}

.source a {
    display: inline-block;
    color: #3b7dd8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.source a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.accuracy {
    margin-top: 1rem;
    padding: 0.6rem;
    text-align: center;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.accuracy.pending {
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    color: #333;
}

.accuracy.true {
    background: linear-gradient(45deg, #28a745, #34c759);
    color: #fff;
}

.accuracy.false {
    background: linear-gradient(45deg, #dc3545, var(--primary-color));
    color: #fff;
}

/* Analyst Rating */
.analyst-rating {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    color: #495057;
}

.rating-bar {
    height: 8px;
    flex: 1;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-right: 8px;
}

.rating-stats {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.rating-fill {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px;
}

.rating-percentage {
    font-weight: bold;
    font-size: 0.85rem;
}

.rating-cold {
    background: linear-gradient(90deg, #3b7dd8, #4a91ea);
    color: #3b7dd8;
}

.rating-cool {
    background: linear-gradient(90deg, #5bc0de, #6ad0ee);
    color: #5bc0de;
}

.rating-medium {
    background: linear-gradient(90deg, #ffd700, #ffeb3b);
    color: #ffc107;
}

.rating-warm {
    background: linear-gradient(90deg, #ff9800, #ffb74d);
    color: #ff9800;
}

.rating-hot {
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    color: #dc3545;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.analysts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.analyst-tile {
    background: var(--card-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    text-align: center;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

.analyst-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.analyst-img-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyst-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.analyst-tile h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.analyst-tile .network {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.accuracy-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.6rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}

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

.sport-tile {
    background: var(--card-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    text-align: center;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

.sport-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.sport-tile h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.sport-tile p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.takes-count {
    background: var(--background-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

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

.topic-tile {
    background: var(--card-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
}

.topic-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.topic-tile h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.topic-tile p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: auto;
}

.interest-meter {
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
}

.interest-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
}

.interest-meter span {
    position: absolute;
    top: 12px;
    right: 0;
    font-size: 0.75rem;
    color: #666;
}

.like-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.like-button:hover {
    background: #dc3545;
    transform: scale(1.05);
}

.accuracy-container {
    max-width: 1000px;
    margin: 0 auto;
}

.analyst-rankings {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    margin-bottom: 2.5rem;
}

.analyst-rankings h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.rankings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ranking-position {
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    color: var(--text-color);
    width: 40px;
}

.ranking-analyst {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 2;
}

.ranking-network {
    color: var(--primary-color);
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.ranking-accuracy {
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: white;
    margin-left: auto;
}

.accuracy-metrics {
    margin-top: 2rem;
}

.accuracy-metrics h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.metric-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.metric-description {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.sport-breakdown, .network-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--background-color);
    border-radius: 6px;
}

.sport-name, .network-name {
    font-weight: 600;
}

.sport-accuracy, .network-accuracy {
    font-weight: 700;
    color: var(--primary-color);
}

/* Footer */
footer {
    background: var(--text-color);
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

footer nav ul {
    gap: 1.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

footer nav ul li a {
    color: #ced4da;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: var(--primary-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.footer-link {
    margin-top: 0.5rem;
}

.footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.footer-description {
    font-size: 0.9rem;
    color: #ced4da;
    margin-top: 0;
}

/* Mobile Filter Toggle Button */
.filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.filter-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.filter-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.filter-toggle.active span:nth-child(2) {
    opacity: 0;
}

.filter-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
    }

    /* Show hamburger button on mobile */
    .filter-toggle {
        display: flex;
    }

    /* Hide sidebar by default on mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        margin: 0;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    /* Show sidebar when active */
    .sidebar.active {
        left: 0;
    }

    .sidebar-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .takes-container {
        grid-template-columns: 1fr;
    }

    .take {
        width: 100%;
        height: auto;
        min-height: 300px;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
