:root {
    --primary: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--gray-50);
    color: var(--gray-600);
    line-height: 1.6;
}

.min-h-screen {
    min-height: 100vh;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    padding: 20px;
    color: var(--primary);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensure spacing across the header */
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    width: 50px;
    height: auto;
}

.logo-link {
    text-decoration: none;  /* Remove the underline */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-link:hover {
    /* Optional: Add some hover effects if you want */
    opacity: 0.8;
}

.logo-link .header-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-title {
    color: var(--gray-900);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: 1rem;
    width: fit-content;
}

.tab-button {
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

.tab-button:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.tab-button.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Matches Grid */
.matches-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.match-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.match-card.match-finished {
    background-color: var(--gray-100);
}

.match-card.match-upcoming {
    background-color: #fff;
}

/* Match Header */
.match-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.team {
    flex: 1;
    text-align: center;
}

.team-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: contain;
}

.team-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1rem;
}

.vs-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-400);
    background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Match Info */
.match-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: 1rem;
    margin-top: 1rem;
}

.match-date-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Match Results Container (Prediction & Final Score) */
.match-results-container {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.prediction-box, .final-score-box {
    flex: 1;
    padding: 1.25rem;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.prediction-box {
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.final-score-box {
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.box-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prediction-box .box-label {
    color: var(--primary-dark);
}

.final-score-box .box-label {
    color: var(--success);
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.team-score {
    font-size: 1.5rem;
    font-weight: 800;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.prediction-box .team-score {
    color: var(--primary-dark);
}

.final-score-box .team-score {
    color: var(--success);
}

.score-separator {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-400);
}

.empty-state {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Match Footer */
.match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.other-info {
    display: flex;
    gap: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.predictions-count i,
.roasts-count i {
    margin-right: 0.25rem;
}
/* Leaderboard Styling */
.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.leaderboard-list {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: var(--gray-50);
}

.leaderboard-row.top-three {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
}

.rank-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.player-details {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: var(--gray-900);
}

.player-title {
    font-size: 0.875rem;
    color: var(--primary);
}

.player-scores {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.prediction-score {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.prediction-points {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.prediction-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.upvote-score {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.upvote-points {
    font-weight: 600;
}

.upvote-label {
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .leaderboard-container {
        padding: 0.5rem;
    }

    .leaderboard-row {
        padding: 0.75rem 1rem;
    }

    .rank-indicator {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .score-number {
        font-size: 1.25rem;
    }
}

.player-predictions {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.perfect-predictions {
    color: var(--success);
}

.close-predictions {
    color: var(--warning);
}

.player-score {
    text-align: right;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.score-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Flyout Overlay & Container */
.flyout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.flyout {
    background: #fff;
    width: 100%;
    max-width: 600px; /* Fixed width for desktop */
    height: auto;
    max-height: 90vh; /* Prevent full height on desktop */
    padding: 2rem;
    position: relative;
    border-radius: 2rem;
    animation: slideUp 0.3s forwards;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flyout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.flyout-content {
    display: grid;
    gap: 1.5rem;
}

.flyout-close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.flyout-close-button:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}


.team-logo-large {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
}

.vs-text-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-400);
    background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Prediction Edit Mode & Controls */
.prediction-score.edit-mode {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-input {
    width: 80px;
    height: 60px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    color: var(--primary-dark);
    background: white;
    transition: all 0.2s ease;
}

.score-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.edit-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.save-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-button:hover {
    background: var(--primary-dark);
}

.delete-button {
    background: var(--error);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-button:hover {
    background: #DC2626;
}

.prediction-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.edit-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.edit-button:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* Prediction Actions (Creating New) */
.prediction-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.prediction-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.save-prediction-button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-prediction-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Section Title */
.section-title {
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
}

/* Other Predictions */
.other-predictions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.other-prediction-card {
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-100);
}

.pred-user {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.pred-score {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-900);
}

/* Roasts Section */
.roasts-section {
    margin-top: 2rem;
}

.roasts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-roast {
    display: flex;
    gap: 0.5rem;
}

.roast-input {
    flex: 1;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.send-roast-button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-roast-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.delete-roast-button {
    position: absolute;
    top: 20px;  
    right: 20px;  
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 14px;
}

.delete-roast-button i {
    margin-right: 4px;
}

.delete-roast-button:hover {
    color: #DC2626;
}

.roast-user {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.roast-text {
    color: var(--gray-900);
}

.roast-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

/* User Info & Auth Buttons */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.sign-out-button {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.sign-out-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sign-out-button:active {
    transform: translateY(0);
}


.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal {
    background: white;
    border-radius: 8px;
    padding: 20px;
    width: 400px;
    max-width: 90%;
    position: relative;
}

.modal-close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gray-100);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.settings-button {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.settings-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.settings-button i {
    margin-right: 5px;
}

/* Timezone Select Styling */
.timezone-setting {
    margin-top: 1.5rem;
}

.timezone-setting label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

#timezone {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#timezone:hover {
    border-color: var(--gray-300);
}

#timezone:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

#timezone option {
    color: var(--gray-800);
    padding: 0.5rem;
}

/* Input Field Styling */
.modal h2 {
    margin-bottom: 1rem;
}
.modal input[type="text"],
.modal select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-800);
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.modal input[type="text"]:focus,
.modal select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600; 
    color: var(--gray-700);
    font-size: 0.875rem; 
    line-height: 1.2; 
    transition: color 0.2s ease;
}


/* Button Styling */
.modal button:not(.modal-close-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 1rem;
    width: 100%; /* Makes button span full width of container */
}

.modal button:not(.modal-close-button):hover {
    background: var(--primary-dark);
}

.modal button:not(.modal-close-button):active {
    transform: translateY(1px);
}

.modal button:not(.modal-close-button):disabled {
    background: var(--gray-300);
    color: var(--gray-600);
    cursor: not-allowed;
}


/* Menu Container */
.menu-container {
    position: relative;
    margin-left: 1rem;
}

.menu-button {
    background: white;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.menu-button:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    min-width: 200px;
    z-index: 50;
    animation: menuSlideDown 0.2s ease-out;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-dropdown li {
    padding: 0.75rem 1rem;
    margin: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.menu-dropdown li:hover {
    background: var(--gray-50);
    color: var(--primary);
}


.menu-dropdown li.sign-in-item:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
}

.menu-dropdown li i {
    font-size: 1.25rem;
}

/* Google Sign In Button */
.google-sign-in-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1.25rem;
    width: 100%;
    border-radius: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem 0;
}

.google-sign-in-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Login Prompt Styling */
.login-prompt {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.login-prompt p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.vote-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

/* Individual Vote Button */
.vote-buttons button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    background: white;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover State */
.vote-buttons button:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* Active/Pressed State */
.vote-buttons button:active:not(:disabled) {
    transform: translateY(0);
}

/* Upvote Button Specific Styles */
.vote-buttons button:first-child:hover:not(:disabled) {
    color: var(--success);
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

/* Downvote Button Specific Styles */
.vote-buttons button:first-child.active {
    color: var(--success);
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.vote-buttons button:last-child.active {
    color: var(--error);
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
  }

.vote-buttons button:last-child.active {
    color: var(--error);
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
  }

/* Disabled State */
.vote-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-50);
}

/* Vote Count Display */
.vote-count {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-left: 0.25rem;
}

.vote-buttons button:first-child:hover:not(:disabled) {
    color: var(--success); /* Green for upvote */
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.vote-buttons button:last-child:hover:not(:disabled) {
    color: var(--error); /* Red for downvote */
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

/* Disabled State */
.vote-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-50);
}

/* Vote Count Display */
.vote-count {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-left: 0.25rem;
}

.header-right button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1rem; 
    border-radius: 0.75rem; 
    font-size: 0.875rem; 
    font-weight: 600; 
    transition: all 0.2s ease;
    cursor: pointer;
}

.about-button {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.about-button:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.google-sign-in-button {
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    gap: 0.5rem; /* Spacing for icon and text */
}

.google-sign-in-button:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.google-sign-in-button img {
    width: 20px; /* Ensure consistent size for Google logo */
    height: 20px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-content .intro {
    color: var(--gray-700);
    line-height: 1.6;
    font-weight: bold;
}

.scoring-system {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-100);
}

.scoring-system h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.scoring-system ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scoring-system li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.score-desc {
    color: var(--gray-700);
}

.reply-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.reply-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.send-reply-button,
.cancel-reply-button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-reply-button {
    background: var(--primary);
    color: white;
    border: none;
}

.cancel-reply-button {
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
}

.reply-button {
    background: transparent;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.reply-button:hover {
    color: var(--primary);
}

.roast-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}


.roast-nsted-replies {
    gap: 0rem;
    margin-left: calc(var(--depth, 0) * 1rem);
    margin-bottom: 1rem;
}

.nested-replies {
    padding-left: 0.5rem;
    border-left: 1px solid var(--gray-200);
}

.roasts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}


.roast-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.roast-thread {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: auto;
    /* margin-bottom: 1rem; */
    margin-left: calc(var(--depth, 0) * 1rem);
}

.collapse-button {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.collapse-button:hover {
    background: var(--gray-100);
    color: var(--gray-900);
    border-color: var(--gray-300);
}

/* .collapse-button-placeholder {
    min-width: 24px;
    height: 24px;
    margin-top: 1rem;
} */

.roast-content {
    flex: 1;
}

/* Nested Replies */
.nested-replies {
    border-left: 1px solid var(--gray-200);
    width: calc(100%);
}

/* Roast Card */
.roast-card {
    background: var(--gray-50);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
}

  
  .twitter-share-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #1DA1F2;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .twitter-share-button i {
    font-size: 1.125rem;
  }
  
  .twitter-share-button:hover {
    background: rgba(29, 161, 242, 0.1);
    transform: translateY(-1px);
  }
  
/* Add these styles to your CSS */

/* Predictions Flyout Styling */
.predictions-overview {
    padding: 1rem;
  }
  
  .prediction-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced gap */
}

.prediction-item {
    background: white;
    border-radius: 0.5rem; /* Smaller border radius */
    padding: 0.75rem; /* Reduced padding */
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: auto auto auto; /* More compact grid */
    align-items: center;
    gap: 1rem;
}
  
  .prediction-item:hover {
    border-color: var(--gray-200);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  .team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
    font-size: 0.875rem; /* Slightly smaller font */
    color: var(--gray-600);
}

.team-logo-small {
    width: 24px; /* Smaller logo */
    height: 24px;
    object-fit: contain;
}

.team-name-small {
    font-size: 0.875rem;
    font-weight: 500;
}

.prediction-scores {
    display: flex;
    flex-direction: column; /* Stack scores and details */
    align-items: center;
    gap: 0.25rem; /* Reduced gap */
    font-size: 0.875rem; /* Unified font size */
}
.score {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.score-divider {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin: 0 0.25rem; /* Compact separator */
}

.final-score {
    font-size: 0.75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.match-date-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem; /* Slight spacing */
}




  
  /* The search box container */
  .search-box {
    display: flex;
    align-items: center;
    width: 350px; 
    margin-left: auto; 
    position: relative; 
    overflow: hidden;
}

/* The search input itself */
.search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    flex-grow: 1;
}
  
  .search-input:focus {
    outline: none;
    border-color: var(--primary);
  }
  
  /* The search toggle button */
  .header-right .search-toggle-button {
    background: white;
    border: 0px solid var(--gray-200);
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.2s ease;
    font-size: 1.3rem;
    margin-left: -3rem;
    z-index: 3;
}
  
  .search-toggle-button:hover {
    color: var(--primary);
  }

  .search-slide-enter-active, .search-slide-leave-active {
    transition: all 0.3s ease;
  }
  .search-slide-enter-from, .search-slide-leave-to {
    opacity: 0;
    transform: translateX(10px);
  }

  .match-playing {
    border: 1px solid red; 
    /* animation: pulse 1.5s infinite; */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.525);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.768);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.467);
    }
}

  

/* Mobile-Specific Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .main-content {
        padding: 0 1rem;
    }

    .matches-grid,
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }

    .flyout {
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        animation: slideIn 0.3s forwards;
        padding: 1rem;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }

    .player-score {
        text-align: left;
    }

    .timezone-setting {
        margin-top: 1rem;
    }

    #timezone {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* Adjust Match Results for Mobile */
    .match-results-container {
        flex-direction: column; /* Stack "Your Prediction" and "Final Score" vertically */
        gap: 1rem;
    }

    .prediction-box,
    .final-score-box {
        border-radius: 1rem; /* Ensure rounded corners */
        padding: 1rem;
        text-align: center; /* Center-align the text and numbers */
    }

    .box-label {
        font-size: 0.875rem; /* Slightly larger label text for mobile */
        margin-bottom: 0.5rem;
    }

    .score-display {
        justify-content: center; /* Center-align the score numbers */
    }

    .team-score {
        font-size: 1.25rem; /* Adjust score size for better fit */
        line-height: 1.5; /* Add spacing between numbers */
    }

    .score-separator {
        font-size: 1rem; /* Adjust separator size */
    }

    .vote-buttons {
        justify-content: space-around;
        padding: 0.5rem 0;
    }

    .vote-buttons button {
        flex: 1;
        justify-content: center;
    }

    .predictions-overview {
        padding: 0rem;
    }

    .prediction-item {
        gap: 0.5rem;
        text-align: center;
    }

    .team-info {
        justify-content: center;
    }

    .search-box {
        display: block;
        width: 100% !important;
      }

      .search-input {
        width: 100% !important;
      }
}
