/* Landing page specific styles */
.main-content {
    background-color: var(--bg-primary); /* Use global variable */
    color: var(--text-primary); /* Use global variable */
    padding-top: 4rem; /* Add top padding for spacing below navbar */
    padding-bottom: 4rem; /* Add bottom padding */
}

/* Remove gradient border and radial gradients */
.prediction-card::before,
.prediction-card::after {
    content: none;
}

.prediction-card .card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color); /* Use global variable */
    padding: 0 0 1rem 0; /* Adjust padding */
    margin-bottom: 1rem; /* Adjust margin */
}

.prediction-card .card-body {
    padding: 0;
}

/* Animation Effects - Remove pulsing */
.badge.bg-success {
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.02em;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.2); /* Keep subtle shadow */
    position: relative;
    overflow: hidden;
}

/* Remove shine animation for badges */

/* Remove unused keyframes */
/* @keyframes shine { ... } */
/* @keyframes pulse-green { ... } */


.hero-section {
    color: var(--text-primary); /* Use global variable */
    padding: 6rem 0; /* Increase padding */
    margin-bottom: 3rem; /* Increase margin */
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary); /* Ensure background is primary */
    position: relative; /* Needed for ::before positioning */
    overflow: hidden; /* Hide texture overflow */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        15deg,
        transparent,
        transparent 35px,
        rgba(229, 231, 235, 0.05) 35px,
        rgba(229, 231, 235, 0.05) 37px
    ); /* Subtle diagonal lines */
    z-index: 0; /* Ensure it's behind content */
    pointer-events: none; /* Ensure it doesn't interfere with interactions */
}

/* Retro Flip Counter Badge */
.flip-counter-badge {
    display: inline-block;
    text-decoration: none;
    background-color: var(--button-purchase-bg); /* Use purchase green */
    color: var(--button-text); /* Use button text color */
    border-radius: 12px; /* Match card border radius */
    padding: 1rem 2rem; /* Adjust padding */
    box-shadow: 0 4px 12px var(--player-shadow); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden; /* Needed for potential future animations */
}

.flip-counter-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--player-shadow), 0 0 15px rgba(var(--card-bg-color-rgb), 0.1); /* Slightly larger shadow and subtle glow on hover */
}

.flip-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'monospace', sans-serif; /* Monospace font for digits */
    font-size: 2.5rem; /* Large font size for numbers */
    font-weight: bold;
    margin-bottom: 0.5rem; /* Space between counter and label */
    perspective: 500px; /* For 3D flip effect */
}

.flip-counter .digit {
    position: relative;
    width: 1.2em; /* Fixed width for digits */
    height: 1.2em; /* Fixed height */
    line-height: 1.2em;
    text-align: center;
    margin: 0 2px; /* Space between digits */
    border-radius: 4px; /* Small border radius for digit segments */
    background-color: rgba(0, 0, 0, 0.1); /* Subtle dark background for segments */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2); /* Inset shadow for depth */
    overflow: hidden; /* Hide overflow during flip */
}

.flip-counter .digit .flipper {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-out; /* Flip animation */
    backface-visibility: hidden;
}

.flip-counter .digit .flipper .segment {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background-color: var(--button-purchase-bg); /* Match badge background */
    color: var(--button-text); /* Match button text color */
    /* Retro styling */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.flip-counter .digit .flipper .segment.top {
    line-height: 1.2em; /* Align text */
    transform-origin: 50% 100%;
    transform: rotateX(0deg);
    border-bottom: none;
}

.flip-counter .digit .flipper .segment.bottom {
    line-height: 0; /* Align text */
    transform-origin: 50% 0%;
    transform: rotateX(180deg);
    border-top: none;
}

/* Initial state for animation */
.flip-counter .digit.flipping .flipper {
    transform: rotateX(-180deg);
}


.flip-counter .symbol {
    font-weight: bold;
    margin: 0 2px;
    align-self: flex-end; /* Align with the bottom of digits */
    margin-bottom: 0.2em; /* Fine tune alignment */
}

.counter-label {
    font-size: 1rem; /* Smaller font size for label */
    font-weight: 600;
    color: var(--button-text); /* Use button text color */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Enhanced Hero Title Styling */
.hero-title-container {
    margin-bottom: 2rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* Remove title container background/shadow */
.hero-title-container::before {
    content: none;
}

.hero-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: none; /* Remove text shadow */
}

.hero-title-main, .hero-title-secondary {
    display: block;
    position: relative;
}

.hero-title-main {
    font-size: 3.5rem;
    background: none; /* Remove gradient */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-fill-color: unset;
    color: var(--text-primary); /* Use primary text color */
    margin-bottom: 0.2rem;
    /* animation: none; Remove animation for now */
    position: relative; /* Needed for ::after positioning */
    display: inline-block; /* Needed for ::after width */
    text-shadow: 0 0 5px rgba(var(--card-bg-color-rgb), 0.3); /* Subtle glow */
}

.hero-title-main::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Adjust position as needed */
    width: 0; /* Start with zero width */
    height: 3px; /* Thickness of the line */
    background: linear-gradient(90deg, var(--accent-subtle), var(--button-purchase-bg)); /* Subtle gradient */
    animation: expandLine 3s ease-out forwards; /* Morphing animation */
}

.hero-title-secondary {
    font-size: 3.2rem;
    color: var(--text-secondary); /* Use secondary text color */
    font-weight: 600;
    animation: none; /* Remove animation for now */
    opacity: 1; /* Ensure visible */
    transform: translateY(0); /* Reset transform */
    position: relative;
    text-shadow: 0 0 3px rgba(var(--card-bg-color-rgb), 0.2); /* Subtle glow */
}

/* Remove underline animation */
.hero-title-secondary::after {
    content: none;
}

/* Remove unused keyframes */
/* @keyframes expandLine { ... } */
/* @keyframes fadeInUp { ... } */


/* Remove hero section background effects */
.hero-section::before, .hero-section::after {
    content: none;
}

/* Winners Wall */
.winners-wall {
    background-color: var(--bg-secondary); /* Use secondary background */
    border-radius: 15px;
    padding: 3rem; /* Increase padding */
    margin: 3rem 0; /* Increase margin */
    box-shadow: 0 4px 12px var(--player-shadow); /* Use subtle shadow */
    border: 1px solid var(--border-color); /* Add subtle border */
}

/* Team Logo Styles */
.team-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Increase margin */
    position: relative;
}

/* Remove line under team logos */
.team-logo-container::after {
    content: none;
}

.prediction-card:hover .team-logo {
    box-shadow: 0 5px 12px var(--player-shadow); /* Use subtle shadow */
}

/* UNUSED_SELECTOR_REMOVED 
  .team-logo:hover {
      transform: scale(1.15);
      box-shadow: 0 5px 12px var(--player-shadow); /* Use subtle shadow 
      z-index: 2;
  }
*/

.prediction-card:hover .away-team {
    transform: none; /* Remove hover transform */
}

.prediction-card:hover .home-team {
    transform: none; /* Remove hover transform */
}

.matchup-container {
    text-align: center;
    position: relative;
}

.matchup {
    font-size: 1.1rem; /* Increase size */
    color: var(--text-primary); /* Use primary text color */
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 20px; /* Increase margin */
}

.prediction {
    font-weight: 600;
    color: var(--text-primary); /* Use primary text color */
    font-size: 1.1em; /* Increase size */
    background-color: var(--bg-primary); /* Use primary background */
    border-radius: 10px;
    padding: 1rem; /* Increase padding */
    border-left: 3px solid var(--accent-subtle); /* Use subtle accent border */
    box-shadow: inset 0 0 0 1px var(--border-color); /* Use border color */
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.prediction:hover {
    background-color: var(--bg-secondary); /* Use secondary background on hover */
    box-shadow: inset 0 0 0 1px var(--accent-subtle); /* Use subtle accent on hover */
}

.prediction-card:hover .prediction {
    background-color: var(--bg-secondary); /* Use secondary background on hover */
    box-shadow: inset 0 0 0 1px var(--accent-subtle); /* Use subtle accent on hover */
}

.team-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.team-score .score {
    color: var(--text-primary); /* Use primary text color */
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px var(--player-shadow); /* Use subtle shadow */
    min-width: 32px;
    text-align: center;
}

.text-muted {
    color: var(--text-secondary) !important; /* Use secondary text color */
    font-size: 0.9em;
}

.prediction-card {
    background-color: var(--bg-card); /* Use bg-card */
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border-color); /* Add subtle border */
    box-shadow: 0 4px 12px var(--player-shadow); /* Add subtle shadow */
}

.prediction-card:hover {
    transform: translateY(-5px);
}

.prediction-card .prediction {
    margin-bottom: 1rem;
}

.prediction-card .btn {
    width: 100%;
}

/* Prediction Cards */
.prediction-card .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Pricing section spacing - restored to normal */
.pricing-section {
    margin-top: 2rem; /* Normal spacing */
}

/* Pricing Cards */
.pricing-card {
    background-color: var(--bg-card); /* Use bg-card */
    border: 1px solid var(--border-color); /* Use global variable */
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px var(--player-shadow); /* Add subtle shadow */
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--player-shadow), 0 0 15px rgba(var(--card-bg-color-rgb), 0.1); /* Slightly larger shadow and subtle glow on hover */
}

.pricing-card.featured {
    position: relative;
    box-shadow: 0 6px 16px var(--player-shadow), 0 0 20px rgba(107, 142, 35, 0.15); /* Enhanced shadow with green glow */
}

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

.pricing-header .price {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--button-purchase-bg); /* Use purchase green */
    margin: 1rem 0;
}

.pricing-header .price span {
    font-size: 0.4em;
    color: var(--text-secondary); /* Use secondary text color */
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.features-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary); /* Use primary text color */
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--status-success); /* Use success status color */
}

/* Feature Cards */
.feature-card {
    border: 1px solid var(--border-color); /* Use global variable */
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px var(--player-shadow), 0 0 15px rgba(var(--card-bg-color-rgb), 0.1); /* Add subtle shadow and subtle glow */
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    color: var(--text-secondary); /* Use secondary text color for icons */
    margin-bottom: 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: var(--bg-card); /* Use bg-card */
    border: 1px solid var(--border-color); /* Use global variable */
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 12px var(--player-shadow); /* Add subtle shadow */
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4em;
    color: var(--accent-subtle); /* Use subtle accent color */
    opacity: 0.5; /* Increase opacity slightly */
}

.testimonial-card .testimonial-text {
    margin-bottom: 1.5rem;
    color: var(--text-primary); /* Use primary text color */
}

.testimonial-card .author-name {
    margin-bottom: 0.2rem;
    color: var(--text-primary); /* Use primary text color */
}

.testimonial-card .author-title {
    font-size: 0.9em;
}

/* CTA Section */
.cta-section {
    background-color: var(--bg-secondary); /* Use secondary background */
    border-top: 1px solid var(--border-color); /* Use global variable */
    border-bottom: 1px solid var(--border-color); /* Use global variable */
    padding: 4rem 0;
    margin: 3rem 0; /* Increase margin */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 1.5rem;
    }

    .hero-section {
        padding: 3rem 0; /* Adjust padding for smaller screens */
    }

    .winners-wall, .cta-section {
        margin: 2rem 0; /* Adjust margin for smaller screens */
        padding: 2rem; /* Adjust padding for smaller screens */
    }
}

/* Specific styles for buttons on landing page */
.hero-section .btn-primary,
.cta-section .btn-primary,
.pricing-card .btn-primary { /* Apply to pricing card buttons as well */
    background-color: var(--button-purchase-bg); /* Use purchase green for main CTAs */
    border-color: var(--button-purchase-bg);
    color: var(--button-text);
    font-size: 1.25rem; /* Larger font size for main CTAs */
    padding: 0.75rem 2rem; /* Larger padding */
}

.hero-section .btn-primary:hover,
.cta-section .btn-primary:hover,
.pricing-card .btn-primary:hover { /* Apply to pricing card buttons as well */
    background-color: var(--button-purchase-hover);
    border-color: var(--button-purchase-hover);
}

.btn-outline-success {
    color: var(--status-success);
    border-color: var(--status-success);
}

.btn-outline-success:hover {
    background-color: var(--status-success);
    color: var(--button-text);
}

.btn-outline-primary {
    color: var(--text-secondary); /* Use secondary text color for outline buttons */
    border-color: var(--border-color); /* Use border color for outline */
}

.btn-outline-primary:hover {
    background-color: var(--border-color); /* Use border color on hover */
    color: var(--text-primary); /* Use primary text color on hover */
}

.btn-link {
    color: var(--text-secondary); /* Use secondary text color for links */
}

.btn-link:hover {
    color: var(--text-primary); /* Use primary text color on hover */
}

/* Overrides for Edge-AI highlighting on smaller prediction cards */
.prediction-card .team-info.edge-ai-pick {
    /* Reduce or remove transform scale */
    transform: none;
    /* Adjust box shadow */
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1); /* Lighter shadow */
    /* Adjust border */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Lighter border */
    /* Adjust background gradient opacity */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.05));
    padding: 0.5rem; /* Add some padding */
    border-radius: 8px; /* Smaller border radius */
}

.prediction-card .edge-ai-banner {
    /* Adjust banner position and size for smaller cards */
    top: 4px;
    padding: 0.1rem 0.3rem;
    font-size: 0.55rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.2);
}

.prediction-card .team-info.edge-ai-pick .team-name {
    /* Adjust text color for better contrast on lighter background */
    color: var(--text-primary); /* Use primary text color */
    text-shadow: none; /* Remove text shadow */
}

.prediction-card .team-info.edge-ai-pick .highlighted-team img {
    /* Adjust border and shadow on the logo itself */
    border: 1px solid rgba(255, 215, 0, 0.3); /* Lighter border */
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2); /* Lighter shadow */
}

.prediction-card .team-info.edge-ai-pick::before {
    /* Adjust the top border shimmer */
    height: 2px; /* Thinner */
}

.prediction-card .team-logo {
    /* Ensure team logos maintain correct size and aspect ratio */
    width: var(--logo-md); /* Smaller size for winner cards */
    height: var(--logo-md);
    padding: 4px; /* Smaller padding */
    box-shadow: 0 2px 6px var(--player-shadow); /* Lighter shadow */
}

.prediction-card .team-logo-container {
    margin-bottom: 10px; /* Reduce margin below logos */
}

.prediction-card .matchup {
    font-size: 1rem; /* Smaller font size */
    margin-bottom: 10px; /* Reduce margin */
}

.prediction-card .prediction {
    font-size: 1em; /* Smaller font size */
    padding: 0.75rem; /* Smaller padding */
    border-left-width: 2px; /* Thinner border */
}

.prediction-card .game-details {
    margin-top: 10px; /* Reduce margin */
}

.prediction-card .spread-display .badge {
    font-size: 0.65rem; /* Smaller font size for spread badge */
    padding: 3px 8px; /* Smaller padding */
}

/* Keyframes for morphing line animation */
@keyframes expandLine {
    0% {
        width: 0;
        opacity: 0.5;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}
