/**
 * Vidmate App Website - Main Stylesheet
 * Professional, mobile-responsive design
 * Color Scheme: Red (#FF0000) primary, White backgrounds, Dark text
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1A1A1A;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

a {
    color: #FF0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #CC0000;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-link {
    color: white;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1A1A1A;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #FF0000;
}

/* Search Bar */
.search-container {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 0.75rem;
    width: 200px;
    font-size: 0.95rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #FFA500;
}

/* Mobile Search Icon (Hidden on Desktop) */
.mobile-search-icon {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: center;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 50%, #333333 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BUTTONS (Enhanced)
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    /* More rounded */
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #FF0000, #FF5500);
    /* Gradient */
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #CC0000, #FF3300);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #FF8C00, #FFC107);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: #FF0000;
    border: 2px solid #FF0000;
}

.btn-outline:hover {
    background: #FF0000;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* ============================================
   ADVERTISEMENTS (Responsive)
   ============================================ */
.ad-container {
    width: 100%;
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
}

.responsive-ad {
    display: inline-block;
    width: 100%;
    max-width: 728px;
    height: auto;
    min-height: 90px;
    background: #f0f0f0;
    /* Placeholder bg */
    border: 1px dashed #ccc;
    /* Placeholder border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
}

@media (max-width: 768px) {
    .responsive-ad {
        max-width: 336px;
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .responsive-ad {
        max-width: 300px;
        min-height: 250px;
    }
}


/* ============================================
   SECTIONS & CARDS
   ============================================ */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1A1A1A;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #FF0000;
}

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

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #FF0000;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    color: #FF0000;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
}

.feature-desc {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   INFO TABLE
   ============================================ */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-table th {
    background: #FF0000;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.info-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.info-table tr:hover {
    background: #f9f9f9;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
    background: white;
    border-left: 4px solid #FF0000;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    color: #FF0000;
}

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

.faq-toggle.open {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    margin-top: 1rem;
    color: #666;
    line-height: 1.6;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1A1A1A;
    color: #CCCCCC;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #FF0000;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #FF0000;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFA500;
    transform: translateY(-3px);
}

.footer-middle {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #FF0000;
    font-size: 1.3rem;
}

.contact-item a {
    color: #999;
}

.contact-item a:hover {
    color: #FF0000;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-left p,
.footer-bottom-right p {
    color: #999;
    font-size: 0.9rem;
}

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

.disclaimer {
    font-size: 0.85rem;
    color: #666;
}

.version {
    color: #666;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .header-container {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        margin: 0 1rem;
    }

    .search-input {
        width: 150px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }

    .header-container {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        position: relative;
    }

    /* Mobile Header Layout */
    .logo {
        margin-right: auto;
    }

    /* Mobile Navigation - HIDDEN BY DEFAULT */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #CC0000;
        width: 100%;
        display: none !important;
        /* Force hide */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
    }

    .nav-menu.active {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
    }

    .nav-menu .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        display: none;
        width: 100%;
    }

    .nav-menu .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Mobile Search Bar - HIDDEN BY DEFAULT */
    .search-container {
        width: 100%;
        order: 4;
        margin-top: 0;
        display: none !important;
        /* Force hide */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #CC0000;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .search-container.active {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        width: 100%;
        background: white;
        color: #333;
    }

    .search-btn {
        color: #CC0000;
    }

    /* Back to Top - fix position */
    #back-to-top {
        right: 20px !important;
        left: auto !important;
        bottom: 20px !important;
    }

    /* Hero optimization for mobile */
    .hero {
        padding: 2rem 1rem;
        text-align: center;
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
    }
}