/*
Theme Name: Download Chrome Theme
Theme URI: https://downloadchrome.com
Description: A fast, distinctive theme for downloadchrome.com - utility-focused Chrome download portal with premium design.
Author: downloadchrome.com
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: downloadchrome-theme
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 8.0
Tags: one-column, custom-colors, full-site-editing, block-patterns
*/

/*
 * DOWNLOADCHROME.COM CUSTOM THEME
 * Enhanced for AdSense revenue
 */

/* Hide page title on homepage */
.home .wp-block-post-title,
.home .entry-title,
body.home h1.wp-block-post-title {
    display: none !important;
}

/* Performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* Download button */
.wp-block-button.is-style-download .wp-block-button__link {
    background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
    box-shadow: 0 4px 14px 0 rgba(26, 115, 232, 0.39);
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.wp-block-button.is-style-download .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(26, 115, 232, 0.5);
}

/* Card style groups */
.wp-block-group.is-style-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem !important;
    transition: box-shadow 0.2s ease;
}

.wp-block-group.is-style-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 10px 24px rgba(0,0,0,0.08);
}

/* FAQ Item style */
.wp-block-group.is-style-faq-item {
    background: #f8fafc;
    border-left: 4px solid #1a73e8;
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.wp-block-group.is-style-faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

/* Platform cards */
.platform-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.platform-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

/* Trust badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0fdf4;
    color: #166534;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero section */
.hero-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: clamp(3rem, 8vw, 6rem) 0;
}

/* Feature list checkmarks */
.wp-block-list.has-checkmarks li {
    position: relative;
    padding-left: 1.75rem;
    list-style: none;
}

.wp-block-list.has-checkmarks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.table-of-contents {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem 0;
    max-width: 400px;
}

.toc-header {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.toc-list {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    color: #334155;
    text-decoration: none;
    transition: color 0.15s ease;
}

.toc-list a:hover {
    color: #1a73e8;
}

/* Sticky TOC on large screens */
@media (min-width: 1200px) {
    .table-of-contents {
        position: sticky;
        top: 2rem;
        float: right;
        margin-left: 2rem;
        margin-right: -220px;
        width: 280px;
        max-width: 280px;
    }
}

/* ============================================================
   RELATED PAGES
   ============================================================ */

.related-pages-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.related-pages-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.related-page-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-page-card:hover {
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
    transform: translateY(-2px);
}

.related-page-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-page-excerpt {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* ============================================================
   AD CONTAINERS
   ============================================================ */

.ad-container {
    margin: 2rem 0;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
    min-height: 90px;
}

.ad-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.in-content-ad-slot {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    text-align: center;
    min-height: 280px;
}

.in-content-ad-slot::before {
    content: "Advertisement";
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
    .wp-block-button__link,
    .wp-block-navigation-item__content,
    .related-page-card,
    a {
        transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {
    .wp-block-buttons {
        flex-direction: column;
    }

    .wp-block-button {
        width: 100%;
    }

    .wp-block-button__link {
        width: 100%;
        justify-content: center;
    }

    .table-of-contents {
        max-width: 100%;
    }

    .related-pages-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .wp-block-navigation,
    .wp-block-button,
    .table-of-contents,
    .related-pages-section,
    .ad-container,
    .in-content-ad-slot {
        display: none !important;
    }
}
