/* Diyaa's Bridal Destination - App Styles */

:root {
    --gold: #d4af37;
    --black: #000000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #1a1a1a;
    --border-color: #ddd;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100%;
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Accessibility */
a:focus, button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ========== HEADER STYLES ========== */
.sticky-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    padding: 12px 24px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-link img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    border-bottom-color: var(--gold);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sign-in-btn, .logout-btn {
    padding: 10px 24px;
    border: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.sign-in-btn:hover, .logout-btn:hover {
    background: var(--black);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========== FOOTER STYLES ========== */
.site-footer {
    background: var(--light-gray);
    border-top: 3px solid var(--gold);
    padding: 40px 24px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 8px;
}

.footer-section a, .footer-section p {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid var(--gold);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.powered-by {
    font-size: 12px;
    color: var(--black);
    font-weight: 600;
}

/* ========== HERO/WELCOME SECTION ========== */
.hero, .welcome-hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 80px 24px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--gold);
}

.hero-inner, .welcome-inner {
    max-width: 600px;
    margin: 0 auto;
}

.hero-text, .welcome-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    color: var(--black);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle, .welcome-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ========== BUTTONS ========== */
.btn-primary, .btn-secondary, .btn-get-started, .signup-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-secondary:hover {
    background: var(--light-gray);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-get-started, .signup-btn {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-get-started:hover, .signup-btn:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* ========== AUTH PAGES ========== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 40px 24px;
}

.auth-box {
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.form-actions button, .form-actions a {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-action-primary {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-action-primary:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-action-secondary {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-action-secondary:hover {
    background: var(--light-gray);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-link a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ========== HOME PAGE ========== */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

.welcome-user {
    font-size: 28px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: var(--light-gray);
    border: 2px solid var(--gold);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

.dashboard-card p {
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 15px;
}

/* ========== LOADING & ANIMATIONS ========== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pwa-slide-up {
    from {
        transform: translateY(120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pwa-splash-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.skeleton {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========== PWA INSTALL PROMPT ========== */
.pwa-install-prompt {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 8000;
    display: none;
    animation: pwa-slide-up 0.3s ease-out;
    max-width: 400px;
    margin: 0 auto;
}

.pwa-install-prompt.show {
    display: block;
}

.pwa-install-content {
    color: var(--black);
}

.pwa-install-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pwa-install-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.pwa-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--black);
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pwa-close-btn:hover {
    transform: scale(1.2);
}

.pwa-install-prompt p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.pwa-install-actions {
    display: flex;
    gap: 12px;
}

.pwa-install-action, .pwa-cancel-action {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pwa-install-action {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--gold);
}

.pwa-install-action:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

.pwa-cancel-action {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.pwa-cancel-action:hover {
    background: var(--light-gray);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .sticky-header {
        padding: 12px 16px;
        /*flex-direction: row;*/
        gap: 15px;
    }

    .logo-link img {
        height: 40px;
    }

    .logo-text {
        font-size: 14px;
    }

    .main-nav {
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        font-size: 12px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .hero, .welcome-hero {
        padding: 60px 16px;
        min-height: 400px;
    }

    .hero-text, .welcome-title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .pwa-install-prompt {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
}

@media (max-width: 480px) {
    .sticky-header {
        padding: 10px 12px;
    }

    .logo-link img {
        height: 35px;
    }

    .logo-text {
        font-size: 12px;
    }

    .main-nav {
        /*flex-direction: row;*/
        gap: 10px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero, .welcome-hero {
        padding: 50px 12px;
        min-height: 350px;
    }

    .hero-text, .welcome-title {
        font-size: clamp(20px, 4vw, 32px);
    }

    .hero-subtitle, .welcome-subtitle {
        font-size: 14px;
    }

    .auth-box {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .auth-title {
        font-size: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-actions {
        /*flex-direction: row;*/
    }
}

/* Print styles */
@media print {
    .no-print, .sticky-header, .site-footer, .pwa-install-prompt {
        display: none !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
