/* Offer Search Tool Page Template
 * Used by: template-offer-search-tool.php, template-offer-search-usa.php
 */

.offer-tool-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* Blue Hero Section - Full bleed */
.offer-hero {
    background: #2C5282;
    padding: 60px 20px 220px;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.offer-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.offer-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.offer-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.offer-hero .offer-hero-trust {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 20px;
    letter-spacing: 0.3px;
    font-weight: 400;
}

/* Hero CTA button */
.offer-hero-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 32px;
    background: #fff;
    color: #2C5282;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.offer-hero-cta:hover {
    background: #e8f0f7;
    transform: translateY(-1px);
}

/* Cross-link pills in hero */
.offer-hero-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.offer-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.offer-hero-pill:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
}

.offer-hero-pill.active {
    background: rgba(255,255,255,0.95);
    color: #2C5282;
    border-color: rgba(255,255,255,0.95);
    cursor: default;
}

/* Content Container - overlaps hero, IS the white card */
.offer-tool-container {
    max-width: 960px;
    margin: -180px auto 0;
    padding: 32px;
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Hide the plugin's own desktop hero (template provides it) */
.offer-tool-container .gptv3-hero {
    display: none;
}

/* Game Guides Section */
.offer-game-guides {
    max-width: 960px;
    margin: 40px auto 0;
    padding: 0 20px 40px;
}

.offer-game-guides h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
}

.offer-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.offer-guide-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}

.offer-guide-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.offer-guide-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.offer-guide-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-guide-card-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.offer-guide-card-body p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .offer-hero {
        display: none;
    }

    .offer-tool-container {
        margin-top: 0;
        padding: 0;
        max-width: none;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .offer-tool-container > *:not(.gptv3-container) {
        display: none;
    }

    .offer-game-guides {
        display: none;
    }
}

@media (max-width: 640px) {
    .offer-guides-grid {
        grid-template-columns: 1fr;
    }
}
