/* Mayfair Bridal - CSS Styles */

/* CSS Variables */
:root {
    --rose-gold: #e8b4a0;
    --deep-rose: #d4747a;
    --soft-pink: #f7d5d3;
    --warm-cream: #faf8f5;
    --warm-gray: #f5f5f3;
    --text-dark: #2d2d2d;
    --text-gray: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Fonts */
    --font-playfair: 'Playfair Display', serif;
    --font-inter: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-inter);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-cream);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(232, 180, 160, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand h1 {
    font-family: var(--font-playfair);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-rose);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--deep-rose);
    background-color: rgba(232, 180, 160, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--deep-rose);
    margin: 3px 0;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-inter);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--deep-rose);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #c86169;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--deep-rose);
    border: 2px solid var(--deep-rose);
}

.btn-outline:hover {
    background-color: var(--deep-rose);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--warm-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-playfair);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--warm-gray) 0%, rgba(247, 213, 211, 0.3) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-playfair);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-highlight {
    display: block;
    color: var(--deep-rose);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.hero-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.hero-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background: var(--rose-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
}

.badge-number {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

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

/* Grids */
.reels-grid,
.collections-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

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

.card-content {
    padding: 24px;
}

.card-title {
    font-family: var(--font-playfair);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-rose);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-playfair);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-rose);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 500;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--rose-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-gray);
}

/* Forms */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: var(--font-inter);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rose-gold);
    box-shadow: 0 0 0 3px rgba(232, 180, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: #1f2937;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: var(--font-playfair);
    font-size: 1.5rem;
    color: var(--rose-gold);
    margin-bottom: 16px;
}

.footer-brand p {
    color: #d1d5db;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--rose-gold);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 600;
}

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

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--rose-gold);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-gray);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--rose-gold);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badge {
        position: static;
        margin-top: 20px;
        align-self: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .reels-grid,
    .collections-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Cart Styles */
.nav-cart {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.cart-btn:hover {
    background-color: var(--warm-gray);
    color: var(--deep-rose);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--deep-rose);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cart-count.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--warm-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-family: var(--font-playfair);
}

.close {
    color: var(--text-gray);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--deep-rose);
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.cart-items {
    space: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--warm-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--deep-rose);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    background: var(--warm-gray);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--deep-rose);
    color: white;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #ef4444;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--warm-gray);
    background-color: var(--warm-gray);
}

.cart-total {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
}

/* Product Card Add to Cart Button */
.product-card {
    position: relative;
}

.add-to-cart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--deep-rose);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.add-to-cart-btn:hover {
    background: var(--rose-gold);
    transform: scale(1.1);
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
    .nav-cart {
        margin-left: 10px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-item-controls {
        margin-top: 10px;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-success {
    background-color: #10b981;
}

.notification-error {
    background-color: #ef4444;
}

.notification-info {
    background-color: #3b82f6;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification button:hover {
    opacity: 1;
}

/* Video Modal Styles */
.video-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    margin: 2% auto;
}

.video-modal-content .modal-body {
    padding: 0;
}

#video-player {
    width: 100%;
    height: auto;
    border-radius: 0 0 12px 12px;
    background: #000;
}

/* Reel Card Styles */
.reel-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.reel-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    aspect-ratio: 9/12; /* Portrait aspect ratio for reels */
    max-width: 1280px;
    max-height: 720px;
}

.reel-thumbnail .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Inline video player styles */
.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: none;
    max-width: 1280px;
    max-height: 720px;
}

.reel-video.playing {
    display: block;
}

.reel-card.video-playing .card-image {
    display: none;
}

.reel-card.video-playing .play-button-overlay {
    display: none;
}

.video-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: none;
    gap: 8px;
}

.reel-card.video-playing .video-controls {
    display: flex;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 1;
    transition: transform 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Play button is always visible now, but scales on hover */

.play-button-overlay:hover {
    background: var(--deep-rose);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video error styling */
#video-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-top: 15px;
}

#video-error i {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Video player improvements */
#video-player {
    background: #000;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
}

/* Loading spinner for video */
.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #f9fafb;
    border-radius: 8px;
    color: var(--text-gray);
}

.video-loading i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive video modal */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .play-button-overlay {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}
/* Like and Share button styles */
.like-btn, .share-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #6c757d;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 90px;
    justify-content: center;
}

.like-btn:hover {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.share-btn:hover {
    background: linear-gradient(135deg, #e6f2ff 0%, #cce6ff 100%);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.like-btn.liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ef4444 100%);
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.like-btn i, .share-btn i {
    font-size: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}
