/*
Theme Name: VPN Tech Pro
Theme URI: https://thaimovies.net
Author: AI Assistant
Description: A modern, cutting-edge, ultra-fast WordPress theme specifically designed for VPN and Airport reviews. Features SaaS-style pricing tables, gradient conversion buttons, and a dark-mode inspired tech aesthetic.
Version: 1.1
*/

:root {
    --bg-color: #f8fafc;
    --text-color: #334155;
    --heading-color: #0f172a;
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary-color); }

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

/* Header & Navigation */
.site-header {
    background-color: var(--heading-color);
    color: #fff;
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.site-branding .site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.site-branding a { color: #fff; }

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}
.main-navigation a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.main-navigation a:hover { color: #fff; }
.main-navigation .current-menu-item a { color: var(--secondary-color); }

.hero-section {
    text-align: center;
    padding: 50px 20px 60px;
}
.hero-section h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #fff;
}
.hero-section p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Advertisement Placements (1200x100) */
.ad-banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}
.ad-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 12 / 1;
    max-height: 100px;
    background: #e2e8f0;
    color: #64748b;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}
.ad-placeholder:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.ad-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* Post Grid (Home) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.post-card .post-title {
    font-size: 1.3rem;
    margin: 0 0 10px;
    line-height: 1.4;
}
.post-card .post-title a { color: var(--heading-color); }
.post-card .post-title a:hover { color: var(--primary-color); }
.post-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.post-meta span.tag {
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}
.post-excerpt { flex-grow: 1; color: #475569; }

/* Single Post */
.single-post {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}
.single-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}
.single-title {
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    line-height: 1.3;
}
.single-content h2 {
    color: var(--heading-color);
    font-size: 1.6rem;
    margin-top: 40px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
}
.single-content p { font-size: 1.1rem; margin-bottom: 20px; }
.single-content ul { font-size: 1.1rem; margin-bottom: 20px; padding-left: 20px; }
.single-content li { margin-bottom: 10px; }

/* WP Block Styles Overrides */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-color), 0 4px 6px -1px rgba(0,0,0,0.05);
}
.wp-block-table th {
    background: #f1f5f9;
    color: var(--heading-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
}
.wp-block-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}
.wp-block-table tr:hover td { background: #f8fafc; }

.wp-block-buttons {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}
.wp-block-button__link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    border: none;
}
.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.5);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: #64748b;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar { flex-direction: column; gap: 20px; text-align: center; }
    .main-navigation ul { flex-wrap: wrap; justify-content: center; }
    .hero-section h2 { font-size: 1.8rem; }
    .single-post { padding: 20px; }
    .single-title { font-size: 1.8rem; }
    .wp-block-table { display: block; overflow-x: auto; white-space: nowrap; }
}

