/* ===================================
   VenueDekho - Main Stylesheet
   B2C Venue Booking Platform
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #C41E56;
    --primary-dark: #9B1642;
    --primary-light: #E84A7F;
    --secondary-color: #1E3A5F;
    --accent-gold: #D4AF37;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gradient: linear-gradient(135deg, #C41E56 0%, #9B1642 100%);
    
    /* Category Colors */
    --wedding-color: #C41E56;
    --corporate-color: #1E3A5F;
    --parties-color: #FF6B35;
    --social-color: #6B5B95;
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Header Section
   =================================== */
.header {
    background: var(--bg-gradient);
    position: relative;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 50px;
    height: 60px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-icon.small {
    width: 35px;
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: #FFD700;
}

.logo-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-login {
    color: var(--text-white);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-login:hover {
    opacity: 0.8;
}

.btn-register {
    background: var(--text-white);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-register:hover {
    background: #FFD700;
    transform: scale(1.05);
}

/* Tagline */
.tagline {
    color: var(--text-white);
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation Categories */
.nav-categories {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-white);
    opacity: 0.8;
    transition: var(--transition-normal);
    padding: var(--spacing-sm);
}

.nav-item:hover,
.nav-item.active {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-icon {
    width: 28px;
    height: 28px;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
}

.nav-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* CTA Button */
.cta-button {
    background: var(--text-white);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background: #FFD700;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Search Venue Section */
.search-venue-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.venue-search-form {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 150px;
}

.search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.search-field input,
.search-field select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid #E5E5E5;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--text-white);
    transition: var(--transition-fast);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 86, 0.1);
}

.search-field input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--bg-gradient);
    color: var(--text-white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
    height: 44px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

/* Search Section Responsive */
@media (max-width: 992px) {
    .venue-search-form {
        flex-direction: column;
    }
    
    .search-field {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        margin-top: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .search-venue-section {
        padding: var(--spacing-md);
    }
    
    .search-field {
        min-width: 100%;
    }
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 200px;
    background: linear-gradient(90deg, 
        rgba(196, 30, 86, 0.9) 0%,
        rgba(196, 30, 86, 0.7) 30%,
        rgba(196, 30, 86, 0.3) 60%,
        transparent 100%),
        url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?w=1400') center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--spacing-xxl);
}

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

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--text-white);
}

.script-text {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.heart {
    color: #FF4B6E;
    font-size: 1.5rem;
    margin-top: var(--spacing-xs);
}

/* ===================================
   Main Content - Category Grid
   =================================== */
.main-content {
    padding: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* Category Cards */
.category-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
}

/* Card Background Images */
.wedding-card .card-image {
    background: linear-gradient(135deg, rgba(196, 30, 86, 0.85) 0%, rgba(196, 30, 86, 0.4) 100%),
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=800') center/cover;
}

.corporate-card .card-image {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.4) 100%),
        url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800') center/cover;
}

.parties-card .card-image {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85) 0%, rgba(255, 107, 53, 0.4) 100%),
        url('https://images.unsplash.com/photo-1530103862676-de8c9debad1d?w=800') center/cover;
}

.social-card .card-image {
    background: linear-gradient(135deg, rgba(107, 91, 149, 0.85) 0%, rgba(107, 91, 149, 0.4) 100%),
        url('https://images.unsplash.com/photo-1529543544277-750e218c3b6c?w=800') center/cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.card-content {
    position: absolute;
    inset: 0;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-white);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.card-badge.wedding {
    background: var(--wedding-color);
}

.card-badge.corporate {
    background: var(--corporate-color);
}

.card-badge.parties {
    background: var(--parties-color);
}

.card-badge.social {
    background: var(--social-color);
}

/* Ideas Badge (Corporate Card) */
.ideas-badge {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
    text-align: right;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Card Description */
.card-description {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

/* Card Links */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    transition: var(--transition-normal);
}

.wedding-link {
    background: var(--wedding-color);
    color: var(--text-white);
}

.corporate-link {
    background: var(--corporate-color);
    color: var(--text-white);
}

.parties-link {
    background: var(--parties-color);
    color: var(--text-white);
}

.social-link {
    background: var(--social-color);
    color: var(--text-white);
}

.card-link:hover {
    transform: translateX(5px);
    filter: brightness(1.1);
}

/* ===================================
   Footer Section
   =================================== */
.footer {
    background: var(--text-white);
    border-top: 1px solid #E5E5E5;
    padding: var(--spacing-xl) 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: var(--spacing-xxl);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.badge-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.badge-icon svg {
    width: 20px;
    height: 20px;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.badge-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo .logo-main {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.footer-logo .logo-highlight {
    color: var(--primary-dark);
}

.footer-logo .logo-tagline {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.footer-tagline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: var(--spacing-lg);
    border-left: 2px solid var(--primary-color);
}

.tagline-main {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

.tagline-highlight {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablets & Small Desktops */
@media (max-width: 1200px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .nav-categories {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-md);
    }
    
    .trust-badges {
        gap: var(--spacing-lg);
    }
}

/* Tablets */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .card-image {
        height: 250px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .footer-brand {
        flex-direction: column;
    }
    
    .footer-tagline {
        border-left: none;
        border-top: 2px solid var(--primary-color);
        padding-left: 0;
        padding-top: var(--spacing-md);
        align-items: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        padding: var(--spacing-md);
    }
    
    .logo-main {
        font-size: 1.5rem;
    }
    
    .nav-categories {
        gap: var(--spacing-md);
        flex-wrap: wrap;
    }
    
    .nav-item span {
        font-size: 0.75rem;
    }
    
    .hero-banner {
        height: 150px;
        padding-right: var(--spacing-lg);
    }
    
    .script-text {
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .tagline {
        display: none;
    }
    
    .cta-button {
        font-size: 0.85rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .nav-categories {
        gap: var(--spacing-sm);
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .card-content {
        padding: var(--spacing-md);
    }
    
    .card-badge {
        top: var(--spacing-md);
        left: var(--spacing-md);
    }
}

/* ===================================
   Animations & Effects
   =================================== */

/* Smooth Hover Effects */
.category-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card-link {
    position: relative;
    overflow: hidden;
}

.card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.card-link:hover::after {
    left: 100%;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.cta-button {
    animation: pulse 2s infinite;
}

.cta-button:hover {
    animation: none;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

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

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.m-0 { margin: 0; }
.p-0 { padding: 0; }

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
