/*
Theme Name: SafeVN - Vietnamese Security Review Theme
Description: A comprehensive WordPress theme for Vietnamese affiliate blogs, inspired by safewise.com with full Vietnamese language support
Version: 1.0.0
Author: SafeVN Team
Text Domain: safevn
Domain Path: /languages
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Vietnamese Typography */
.vietnamese-text {
    font-family: 'Inter', 'Roboto', 'Noto Sans Vietnamese', sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.hero-search button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-search button:hover {
    background: #005a87;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.product-logo {
    height: 60px;
    margin-bottom: 20px;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.star-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.product-features {
    list-style: none;
    margin-bottom: 25px;
}

.product-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.cta-button {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: #005a87;
    color: white;
}

/* Interactive Quiz */
.quiz-section {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.quiz-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: left;
}

.quiz-options {
    display: grid;
    gap: 15px;
}

.quiz-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.quiz-option:hover {
    border-color: #007cba;
    background: #e3f2fd;
}

.quiz-option.selected {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    background: #007cba;
    height: 100%;
    transition: width 0.3s ease;
}

/* Map Section */
.map-section {
    padding: 60px 0;
}

.map-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.map-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.vietnam-map {
    max-width: 100%;
    height: 400px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 600"><rect width="400" height="600" fill="%23e9ecef"/><text x="200" y="300" text-anchor="middle" fill="%23666" font-size="16">Bản đồ Việt Nam tương tác</text></svg>') no-repeat center;
    background-size: contain;
    border-radius: 8px;
    cursor: pointer;
}

.province-dropdown {
    margin-top: 30px;
}

.province-dropdown select {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 250px;
}

/* Article Grid */
.articles-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.article-date {
    font-weight: 500;
}

.article-category {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Trust Signals */
.trust-section {
    background: #fff;
    padding: 60px 0;
    text-align: center;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.trust-stat {
    padding: 20px;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    color: #007cba;
    display: block;
}

.trust-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Vietnamese Currency Formatting */
.price {
    font-weight: 600;
    color: #007cba;
}

.price::after {
    content: "₫";
    margin-left: 2px;
}

/* Vietnamese Date Formatting */
.date-vietnamese {
    font-style: italic;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table .feature-check {
    color: #28a745;
    font-weight: bold;
}

.comparison-table .feature-cross {
    color: #dc3545;
    font-weight: bold;
}

/* Pros and Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.pros,
.cons {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.pros {
    border-left: 4px solid #28a745;
}

.cons {
    border-left: 4px solid #dc3545;
}

.pros h3 {
    color: #28a745;
    margin-bottom: 20px;
}

.cons h3 {
    color: #dc3545;
    margin-bottom: 20px;
}

.pros ul,
.cons ul {
    list-style: none;
}

.pros li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.cons li:before {
    content: "✗";
    color: #dc3545;
    font-weight: bold;
    margin-right: 10px;
}

/* FAQ Accordion */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    color: #666;
    line-height: 1.6;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* Newsletter Signup */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #218838;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

/* Vietnamese Color Scheme */
:root {
    --vn-primary: #da020e;
    --vn-secondary: #ffcd00;
    --vn-accent: #007cba;
    --vn-success: #28a745;
    --vn-warning: #ffc107;
    --vn-error: #dc3545;
    --vn-neutral-100: #f8f9fa;
    --vn-neutral-200: #e9ecef;
    --vn-neutral-300: #dee2e6;
    --vn-neutral-400: #ced4da;
    --vn-neutral-500: #adb5bd;
    --vn-neutral-600: #6c757d;
    --vn-neutral-700: #495057;
    --vn-neutral-800: #343a40;
    --vn-neutral-900: #212529;
}

.vn-primary {
    color: var(--vn-primary);
}

.vn-secondary {
    color: var(--vn-secondary);
}

.bg-vn-primary {
    background-color: var(--vn-primary);
}

.bg-vn-secondary {
    background-color: var(--vn-secondary);
}