/* ===== HOMEPAGE REDESIGN STYLES ===== */

/* Reset and Base */
.site-content:not(.maintenance-content) {
    padding: unset;
}

/* Hero buttons moved to tailwind.src.css (unlayered section) */
/* Section backgrounds migrated to Tailwind utilities: bg-neutral-100, bg-white, bg-rov-text-dark */

/* Brand Message Cards — base styles moved to Tailwind utilities on front-page.php */
/* .brand-message-card h3/.brand-message-card p kept only for dark-message-block template-part if needed */

/* ===========================
   CTA Blocks
   Styles moved to custom.css for global use across pages
   =========================== */

/* What You Can Do Section — moved to Tailwind utilities on front-page.php */

/* Email Signup - Styles moved to template-parts/email-signup.php */

/* Instagram Section — moved to Tailwind utilities on template-parts/instagram-embed.php */

/* States Grid Section */
.states-grid-section {
    padding: 80px 0;
    background: white;
}

.states-grid-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.states-grid-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-rov-text-muted-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.state-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    background: var(--color-neutral-100, #f5f5f5);
    margin-bottom: 12px;
}

.state-card-wrapper {
    text-decoration: none;
    display: block;
    color: inherit;
}

.state-card svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
}

.state-card svg image {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.state-card-wrapper:hover .state-card svg image {
    transform: scale(1.07);
}

.state-name {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-rov-dark-gray);
}

/* State Message Cards */
.state-message-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

/* Wide cards that span multiple columns */
.state-message-card-wide {
    aspect-ratio: auto;
    /* Height will be set dynamically via JavaScript to match state card height */
}

.state-message-card.bg-orange {
    background: #ff6b35;
    color: white;
}

.state-message-card.bg-green {
    background: #2d5016;
    color: white;
}

.state-message-card.bg-blue {
    background: #1e3a8a;
    color: white;
}

.state-message-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    line-height: 1.3;
}

.state-message-card:hover {
    opacity: 0.9;
}

/* iPad Showcase Section */
.ipad-showcase-section {
    padding: 80px 0;
    background: var(--color-slate-dark);
    color: white;
}

.ipad-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ipad-showcase-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
}

.ipad-showcase-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.95;
}

.ipad-showcase-text ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.ipad-showcase-text ul li {
    font-size: 1.1rem;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.ipad-showcase-text ul li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: 700;
    font-size: 1.3rem;
}

.ipad-showcase-image {
    text-align: center;
}

.ipad-showcase-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.ipad-showcase-text .btn {
    background: white;
    color: var(--color-slate-dark);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease;
}

.ipad-showcase-text .btn:hover {
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    position: relative;
    padding: 80px 0;
    background: var(--color-rov-light-gray);
}

.map-container {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    background-image: url("../images/map-background.jpg");
    background-size: cover;
    background-position: center;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.map-overlay-content {
    text-align: center;
    color: white;
}

.map-overlay-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .ipad-showcase-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ipad-showcase-text {
        order: 2;
    }

    .ipad-showcase-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Feature Cards New (What You Can Do Here) */
.feature-card-new {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-gray-300, #e8e8e8);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--color-gray-300, #e0e0e0);
}

.feature-card-new h3 {
    color: var(--color-rov-text-dark);
}

.feature-card-new .icon-circle {
    transition: all 0.3s ease;
}

.feature-card-new:hover .icon-circle {
    background: #d4e9d4 !important;
}

/* Stats Section */
.stat-card {
    padding: 20px;
}

.stat-number {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
}

.stat-label {
    /* text-transform removed - now controlled by custom.css utility class */
    letter-spacing: 0.5px;
}

/* mw-900 moved to tailwind.src.css @utility */

/* Responsive Typography */
@media (max-width: 768px) {
    .feature-card-new h3 {
        font-size: 1.1rem;
    }
}

/* h2 global override removed -- was too broad with !important, now handled by Tailwind utilities */

/* ===========================
   Explore Content & Map Emerging Sections
   Styles moved to custom.css for global use across pages
   =========================== */

/* Article search modal migrated to Alpine.js -- old Bootstrap .modal-* rules removed */
/* Homepage hero display-1 override removed -- class not used in templates */

/* ===========================
   Linkable Game Sections
   =========================== */

#survey,
#state-quiz {
    scroll-margin-top: 8em;
}

/* ===========================
   Share Anchor Button
   Uses Bootstrap: d-inline-flex align-items-center justify-content-center p-0 ms-2 border-0 rounded-circle
   =========================== */

.share-anchor-btn {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    cursor: pointer;
    vertical-align: middle;
}

.share-anchor-btn:hover { background: rgba(0, 117, 74, 0.15); }
.share-anchor-btn i { font-size: 14px; color: var(--rov-text-muted-light); }
.share-anchor-btn:hover i { color: var(--rov-green); }

/* Light variant for dark backgrounds */
.share-anchor-btn-light { background: rgba(255, 255, 255, 0.15); }
.share-anchor-btn-light:hover { background: rgba(255, 255, 255, 0.25); }
.share-anchor-btn-light i { color: rgba(255, 255, 255, 0.8); }
.share-anchor-btn-light:hover i { color: white; }
