/*
Theme Name: Do Digitals QR
Theme URI: https://dodigitals.org
Author: Ram Kishor
Author URI: https://dodigitals.org
Description: High-performance, SEO-friendly QR Theme with Elementor & Dark Mode support.
Version: 1.1.0
Text Domain: do-digitals-qr
*/

/* 1. CSS Variables for Dark/Light Mode */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #007bff; /* Do Digitals Blue */
    --header-bg: #f8f9fa;
    --footer-bg: #222222;
    --card-bg: #f1f1f1;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #4da3ff;
    --header-bg: #1e1e1e;
    --footer-bg: #000000;
    --card-bg: #1e1e1e;
}

/* 2. Basic Reset & Global Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Global Standard Font */
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
    line-height: 1.6;
}

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

/* 3. Header & Toggle Button */
header {
    background: var(--header-bg);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

[data-theme="dark"] header { border-bottom: 1px solid #333; }

.theme-toggle {
    cursor: pointer;
    background: none;
    border: 2px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--text-color);
    font-weight: bold;
}

/* 4. Elementor Container Fix */
.site-main { padding: 20px 5%; min-height: 80vh; }

/* --- Header Styles Start --- */

/* 1. Base Header Layout */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    position: sticky; /* Sticky Header */
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    transition: background 0.3s, border 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] .site-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.container {
    max-width: 1200px; /* Desktop width */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TV & Large Screens (Responsive) */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    .site-title { font-size: 2rem; }
}

/* 2. Logo */
.site-branding img {
    max-height: 50px; /* Logo height limit */
    width: auto;
}
.site-title a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Navigation (Desktop) */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

/* Hover Effect */
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.main-navigation a:hover::after {
    width: 100%;
}

/* 4. Buttons (Toggle & Mobile) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.theme-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex; /* Show Hamburger on Mobile */
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    [data-theme="dark"] .main-navigation {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation.active {
        display: block; /* Show when active */
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}
/* --- User Profile & Dropdown Styles --- */

/* 1. Logged Out Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-signup {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login {
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn-signup {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-login:hover { background: rgba(0,0,0,0.05); }
.btn-signup:hover { background: #0056b3; }

/* 2. Logged In User Dropdown */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    padding: 5px 10px;
    font-weight: 500;
}

.user-btn .arrow { font-size: 0.8rem; }

/* Dropdown Menu Box */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 2000;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Show Dropdown on Hover */
.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    transition: 0.2s;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Dark Mode Fixes */
[data-theme="dark"] .dropdown-menu {
    border: 1px solid rgba(255,255,255,0.1);
}

/* Membership Card Styles */
.upgrade-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}
.upgrade-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}
.badge {
    background: gold;
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.85rem;
}
/* --- Landing Page Styles --- */

/* 1. Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}
.highlight { color: var(--primary-color); }

.hero-text p { font-size: 1.2rem; color: #666; margin-bottom: 30px; max-width: 500px; }
[data-theme="dark"] .hero-text p { color: #aaa; }

.badge-new {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-btns { display: flex; gap: 15px; }

.btn-main {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,123,255,0.3); }

.btn-sec {
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: bold;
}

.floating-qr {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
    max-width: 100%;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* 2. Features Section */
.features-section { padding: 80px 0; text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 50px; font-weight: bold; }

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

.feature-card {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-card .icon { font-size: 3rem; margin-bottom: 20px; }

/* 3. Pricing Section */
.pricing-section { padding: 80px 0; background: var(--header-bg); }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
}

.price-card.recommended {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0,123,255,0.15);
}

.best-badge {
    position: absolute;
    top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--primary-color); color: #fff;
    padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem;
}

.price { font-size: 2.5rem; font-weight: bold; margin: 20px 0; }
.price span { font-size: 1rem; color: #888; font-weight: normal; }

.price-card ul { list-style: none; margin-bottom: 30px; text-align: left; padding-left: 20px; }
.price-card ul li { margin-bottom: 10px; }

.btn-price {
    display: block;
    padding: 12px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-price.btn-fill { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-price:hover { background: #333; color: #fff; border-color: #333; }

/* 4. CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}
.btn-white {
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    margin-top: 30px;
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    .price-card.recommended { transform: scale(1); }
}