/*
Theme Name: Top6Hosting Child Theme
Theme URI: https://top6hosting.com
Description: Custom child theme for Top6Hosting.com - A professional web hosting comparison and review site
Author: Top6Hosting Team
Author URI: https://top6hosting.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: top6hosting
*/

/* ========================================
   CSS Variables (Design Tokens)
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    
    /* Secondary Colors */
    --secondary: #10b981;
    --accent: #f59e0b;
    --warning: #ef4444;
    
    /* Neutral Colors */
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-btn: 0 4px 14px rgba(14, 165, 233, 0.3);
    
    /* Typography */
    --font-display: 'Crimson Pro', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Global Styles
   ======================================== */
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Header Customization
   ======================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.main-header-bar-wrap {
    padding: 1rem 0;
}

.site-title a,
.custom-logo-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
}

.site-title a span {
    color: var(--primary);
}

/* Navigation Menu */
.main-navigation a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-base);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.main-navigation a:hover {
    color: var(--primary);
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* ========================================
   Buttons
   ======================================== */
.ast-button,
.button,
.wp-block-button__link,
.top6-affiliate-btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: white !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-btn);
    text-decoration: none;
}

.ast-button:hover,
.button:hover,
.wp-block-button__link:hover,
.top6-affiliate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.top6-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    box-shadow: none;
}

.top6-btn-secondary:hover {
    background: var(--primary);
    color: white !important;
}

/* ========================================
   Hosting Comparison Cards
   ======================================== */
.hosting-comparison-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.hosting-comparison-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.hosting-comparison-card[data-rank="1"] {
    border-color: var(--primary);
}

.hosting-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 10;
}

.card-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-md);
    padding: 2.5rem;
    align-items: center;
}

.rank-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.2;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hosting-name {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.hosting-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.features-wrapper ul,
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.features-wrapper li,
.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.features-wrapper li::before,
.features-list li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-score {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
}

/* Pricing Section in Card */
.card-pricing {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.05) 0%, transparent 100%);
    border-left: 2px solid var(--border);
    min-width: 200px;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.price-current span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.cta-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    display: block;
    transition: all var(--transition-base);
    margin-top: 1.5rem;
    box-shadow: var(--shadow-btn);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.guarantee {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ========================================
   Blog Posts
   ======================================== */
.blog .entry-content,
.single .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.blog .entry-title a,
.single .entry-title {
    color: var(--text);
    font-weight: 700;
    transition: color var(--transition-base);
}

.blog .entry-title a:hover {
    color: var(--primary);
}

.entry-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.reading-time {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: var(--radius-sm);
}

/* ========================================
   Comparison Table
   ======================================== */
.top6-comparison-table {
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

.comparison-table-responsive,
.tablepress {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table-responsive th,
.tablepress th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

.comparison-table-responsive td,
.tablepress td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table-responsive tbody tr:hover,
.tablepress tbody tr:hover {
    background: rgba(14, 165, 233, 0.05);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ========================================
   Recommendation Box
   ======================================== */
.recommendation-box {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    border-left: 4px solid;
}

.recommendation-box.recommendation-info {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
}

.recommendation-box.recommendation-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary);
}

.recommendation-box.recommendation-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent);
}

.recommendation-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.recommendation-content {
    color: var(--text-muted);
}

/* ========================================
   Pros & Cons Lists
   ======================================== */
.top6-pros,
.top6-cons {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: var(--spacing-sm) 0;
}

.top6-pros {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid var(--secondary);
}

.top6-cons {
    background: rgba(239, 68, 68, 0.05);
    border: 2px solid var(--warning);
}

.top6-pros .list-title {
    color: var(--secondary);
}

.top6-cons .list-title {
    color: var(--warning);
}

.top6-pros .features-list li::before {
    content: '✓';
    color: var(--secondary);
}

.top6-cons .features-list li::before {
    content: '✗';
    color: var(--warning);
}

/* ========================================
   Price Boxes
   ======================================== */
.price-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: all var(--transition-base);
    position: relative;
}

.price-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.price-box.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
}

.price-provider {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-display);
}

.price-period {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.price-cta {
    display: block;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.price-cta:hover {
    background: var(--primary-dark);
    color: white;
}

/* ========================================
   Related Posts
   ======================================== */
.related-posts-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--border);
}

.related-posts-section h3 {
    margin-bottom: var(--spacing-md);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.related-post-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.related-post-content h4 a {
    color: var(--text);
}

.related-post-content h4 a:hover {
    color: var(--primary);
}

.related-post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-disclosure {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-disclosure strong {
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .card-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .card-pricing {
        border-left: none;
        border-top: 2px solid var(--border);
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .main-navigation a::after {
        display: none;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .related-posts-section,
    .cta-button,
    .top6-affiliate-btn {
        display: none;
    }
}
