/**
 * Shamlock Sports - Homepage Styles
 * Green & Gold Theme - Standalone template (no Elementor)
 */

:root {
    --sham-green: #16a34a;
    --sham-green-hover: #15803d;
    --sham-green-dark: #0f4c2e;
    --sham-gold: #d6b25e;
    --sham-gold-hover: #c5a04d;
    --sham-dark: #1a1a2e;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shamlock-homepage {
    overflow-x: hidden;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   MAIN DARK WRAPPER (75% width container)
   ============================================ */

.homepage-dark-wrapper {
    background: #0d3320;
    margin: 0;
    border-radius: 0;
    padding: 40px 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.shamlock-hero {
    background: transparent;
    padding: 0 0 40px 0;
}

.hero-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/wp-content/uploads/2025/04/banner5.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 76, 46, 0.75) 0%, rgba(15, 76, 46, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 40px;
    max-width: 50%;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-subhead {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    max-width: 550px;
}

.hero-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 25px;
}

.hero-chip {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.hero-cta {
    display: inline-block;
    background: var(--sham-gold);
    color: #1a1a2e;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--sham-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 178, 94, 0.4);
}

/* ============================================
   FREE PICKS SECTION
   ============================================ */

.free-picks-section {
    background: transparent;
    padding: 0;
}

.section-heading {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SPORT TABS
   ============================================ */

.sport-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: fit-content;
}

.sport-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sport-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.sport-tab.active {
    background: var(--sham-gold);
    color: #1a1a2e;
}

@media (max-width: 600px) {
    .sport-tabs {
        width: 100%;
        justify-content: center;
    }

    .sport-tab {
        padding: 10px 16px;
        flex: 1;
        justify-content: center;
        font-size: 12px;
    }
}

/* Desktop: show table, hide mobile tiles */
.picks-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    background: #f9fafb;
    box-shadow: var(--shadow-lg);
}

.picks-tiles-mobile {
    display: none;
}

.picks-table {
    width: 100%;
    border-collapse: collapse;
    color: #1f2937;
}

.picks-table thead {
    background: var(--sham-green-dark);
}

.picks-table th {
    padding: 16px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    border-bottom: 2px solid var(--sham-green-dark);
}

.picks-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    text-align: center;
}

.picks-table tbody tr:hover {
    background: #f3f4f6;
}

.picks-table .game-time {
    color: #6b7280;
    font-size: 14px;
}

.picks-table .game-matchup {
    font-weight: 600;
    font-size: 15px;
}

.picks-table .game-matchup a {
    color: #1f2937;
    text-decoration: none;
}

.picks-table .game-matchup a:hover {
    color: var(--sham-green);
}

.picks-table .pick-value {
    color: #1f2937;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
}

/* Desktop shows full team name, mobile shows logo + abbr */
.picks-table .pick-desktop {
    display: inline;
}
.picks-table .pick-mobile {
    display: none;
    align-items: center;
    gap: 6px;
}

/* Team logos in matchup column */
.picks-table .matchup-logos {
    display: inline-grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.picks-table .matchup-team {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.picks-table .matchup-team:first-child {
    justify-self: end;
}

.picks-table .matchup-team:last-child {
    justify-self: start;
}

/* Prediction column */
.picks-table .prediction-value {
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.picks-table .team-logo-sm {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    vertical-align: middle;
}

.picks-table .matchup-at {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
}

.picks-table .confidence-stars {
    text-align: center;
}

/* Confidence stars styling - Orange to match landing page */
/* Using high specificity to override inline theme styles */
.picks-table .confidence-stars .stars-container {
    display: inline-flex;
    gap: 1px;
}
html body .picks-table .confidence-stars .star,
html body .picks-table .confidence-stars .star.filled,
.shamlock-homepage .picks-table .confidence-stars .star,
.shamlock-homepage .picks-table .confidence-stars .star.filled {
    font-size: 14px;
    color: #FF8C00 !important; /* Orange - matches landing page */
}
/* Empty stars no longer rendered - styling kept for reference
.picks-table .confidence-stars .star.empty {
    color: #d1d5db !important;
}
*/

/* Prediction column - bold dark gray */
.picks-table .prediction {
    font-weight: 700;
    color: #374151 !important;
}

/* Pick column - bold dark gray */
.picks-table .pick {
    font-weight: 700;
    color: #374151 !important;
}

/* Team city names in matchup */
.picks-table .team-city {
    font-weight: 600;
    color: var(--sham-green-dark);
}

/* NCAAM team names */
.picks-table .team-name-ncaam {
    font-weight: 600;
    color: var(--sham-green-dark);
}

.picks-table .odds-value {
    color: #1f2937;
    font-weight: 600;
    text-align: left;
}

.picks-table .sportsbook-btn {
    display: inline-block;
    background: var(--sham-green);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.picks-table .sportsbook-btn:hover {
    background: var(--sham-green-hover);
}

.loading-row td {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

/* Skeleton loader shimmer for picks table */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-table-bar {
    height: 20px;
    border-radius: 6px;
}

.skeleton-row-loader td {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.skeleton-tile {
    height: 100px;
    border-radius: 12px;
}

/* ============================================
   WHY SHAMLOCK - MARKETING SECTION
   ============================================ */

.why-shamlock-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f9fafb 0%, white 100%);
}

.section-title-center {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 16px 0;
    color: var(--sham-green-dark);
}

.section-title-center .accent {
    color: var(--sham-green);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 50px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    white-space: nowrap;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 30px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.12);
    border-color: var(--sham-green);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--sham-green), var(--sham-green-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    stroke: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sham-green-dark);
    margin: 0 0 12px 0;
}

.feature-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cta-banner {
    background: linear-gradient(135deg, var(--sham-green-dark), var(--sham-green));
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-button {
    display: inline-block;
    background: var(--sham-gold);
    color: #1a1a2e;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--sham-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 178, 94, 0.4);
}

/* ============================================
   ARTICLES SECTION
   ============================================ */

.articles-section {
    padding: 60px 0;
    background: #f9fafb;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.article-title a {
    color: var(--sham-green-dark);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--sham-green);
}

.article-meta {
    margin-bottom: 12px;
}

.article-date {
    color: #6b7280;
    font-size: 13px;
}

.article-excerpt {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.read-more {
    color: var(--sham-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================
   STATS DASHBOARD
   ============================================ */

.stats-dashboard {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
    border: 2px solid #e5e7eb;
    border-top: 4px solid var(--sham-green);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--sham-gold);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--sham-green), var(--sham-green-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    stroke: white;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--sham-green-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.stat-change {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
    background: var(--sham-gold);
    color: #1a1a2e;
}

/* ============================================
   TRENDING GAMES SECTION
   ============================================ */

.trending-games {
    background: #f9fafb;
    padding: 60px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--sham-green-dark);
    margin-bottom: 32px;
}

.section-title svg {
    stroke: var(--sham-gold);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trending-placeholder {
    display: contents;
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    height: 200px;
    position: relative;
    overflow: hidden;
}

.skeleton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.trending-game-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   SOCIAL PROOF SECTION
   ============================================ */

.social-proof {
    background: linear-gradient(135deg, var(--sham-green-dark), var(--sham-green));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.proof-content {
    max-width: 700px;
    margin: 0 auto;
}

.proof-icon {
    margin-bottom: 24px;
}

.proof-icon svg {
    stroke: white;
}

.social-proof h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.social-proof p {
    font-size: 18px;
    margin: 0 0 32px 0;
    opacity: 0.9;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        min-height: 350px;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 30px;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subhead {
        font-size: 14px;
        max-width: 100%;
    }

    .hero-chips {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero-chip {
        font-size: 11px;
        padding: 5px 10px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
    }

    .social-proof h3 {
        font-size: 24px;
    }

    /* ============================================
       MOBILE FREE PICKS - TILE LAYOUT
       Matches the pick-card tiles from landing page
       ============================================ */

    /* Hide the table on mobile, show the tile grid */
    .picks-table-wrapper {
        display: none;
    }

    .picks-tiles-mobile {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Each tile is ~half width, but last odd tile centers */
    .picks-tiles-mobile .pick-tile {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    /* Individual pick tile - matches .pick-card from landing page */
    .pick-tile {
        background: #ffffff;
        border: 1px solid #e7e7ee;
        border-top: 3px solid var(--sham-green);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        color: inherit;
    }

    .pick-tile:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(22, 163, 74, 0.12);
        border-color: var(--sham-green);
    }

    /* Tile header - pick type badge and stars */
    .pick-tile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e7e7ee;
    }

    .pick-tile-type {
        background: var(--sham-green);
        color: white;
        padding: 3px 10px;
        border-radius: 12px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 1px solid var(--sham-green-dark);
    }

    .pick-tile-stars {
        display: flex;
        gap: 1px;
    }

    .pick-tile-stars .star {
        color: #FF8C00 !important;
        font-size: 0.9rem;
    }

    /* Teams section */
    .pick-tile-teams {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 8px 0;
        gap: 4px;
    }

    .pick-tile-team {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .pick-tile-team-logo {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }

    .pick-tile-team-name {
        font-size: 0.7rem;
        font-weight: 600;
        color: #1f2937;
        text-align: center;
        max-width: 75px;
        height: 2.4em;
        line-height: 1.2em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .pick-tile-vs {
        font-size: 0.7rem;
        color: #6b7280;
    }

    /* Prediction section */
    .pick-tile-prediction {
        background: #f8f9fa;
        padding: 10px 8px;
        border-radius: 6px;
        text-align: center;
        border: 1px solid #e7e7ee;
        margin-top: auto;
    }

    .pick-tile-pred-label {
        color: #6b7280;
        font-size: 0.65rem;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .pick-tile-pred-value {
        color: var(--sham-green);
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 6px;
        min-height: 56px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .pick-tile-pred-value img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

    .pick-tile-score-label {
        font-size: 0.6rem;
        color: #6b7280;
        text-align: center;
        margin-top: 6px;
        margin-bottom: 2px;
    }

    .pick-tile-score {
        font-size: 0.8rem;
        font-weight: 600;
        color: #1f2937;
        text-align: center;
    }

    /* Marketing section mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .cta-button {
        width: 100%;
    }

    .section-title-center {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

/* Single column on very small screens */
@media (max-width: 400px) {
    .picks-tiles-mobile .pick-tile {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .shamlock-hero {
        padding: 20px 15px;
    }

    .hero-wrapper {
        min-height: 300px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    .stat-value {
        font-size: 28px;
    }

    .section-heading {
        font-size: 18px;
    }
}
