/**
 * 55 & Fabulous Birthday Celebration Website
 * Main Stylesheet
 * Version: 1.0
 * Last Updated: January 21, 2026
 */

/* ============================================================================
   ROOT VARIABLES - Design System
   ============================================================================ */

:root {
    /* Colors */
    --color-primary: #1abc9c;
    --color-primary-dark: #16a085;
    --color-secondary: #2c3e50;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-gray: #e5e5e5;
    --color-text-dark: #333333;
    --color-white: #ffffff;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 25px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-speed: 0.3s;
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--color-primary-dark);
}

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

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent !important;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary) !important;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border: 2px solid var(--color-primary-dark) !important;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary) !important;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ============================================================================
   SOCIAL LOGIN BUTTONS
   ============================================================================ */

.social-login {
    margin: 1rem 0;
}

.social-login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-login .btn i {
    font-size: 1.1em;
}

/* Google Button */
.social-login .btn-outline-danger {
    border: 2px solid #DB4437 !important;
    color: #DB4437;
}

.social-login .btn-outline-danger:hover {
    background-color: #DB4437;
    border: 2px solid #DB4437 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(219, 68, 55, 0.3);
}

/* Facebook Button */
.social-login .btn-outline-primary {
    border: 2px solid #4267B2 !important;
    color: #4267B2;
}

.social-login .btn-outline-primary:hover {
    background-color: #4267B2;
    border: 2px solid #4267B2 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 103, 178, 0.3);
}

/* LinkedIn Button */
.social-login .btn-outline-info {
    border: 2px solid #0077B5 !important;
    color: #0077B5;
}

.social-login .btn-outline-info:hover {
    background-color: #0077B5;
    border: 2px solid #0077B5 !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 119, 181, 0.3);
}

/* OR Divider */
.text-center .text-muted {
    display: inline-block;
    position: relative;
    padding: 0 1rem;
}

.text-center .text-muted:before,
.text-center .text-muted:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: #dee2e6;
}

.text-center .text-muted:before {
    right: 100%;
}

.text-center .text-muted:after {
    left: 100%;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-speed) ease;
}

.navbar-nav .nav-link:hover {
    color: var(--color-primary);
}

.navbar-nav .nav-link.btn {
    color: var(--color-white);
}

/* ============================================================================
   HERO SECTIONS
   ============================================================================ */

.hero-slider-section {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #000;
}

.hero-slider-section .carousel,
.hero-slider-section .carousel-inner,
.hero-slider-section .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-slider-section .carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: var(--radius-md);
    bottom: 3rem;
}

.main-hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 100%);
}

.hero-logo {
    max-width: 200px;
    height: auto;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-primary);
    font-style: italic;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
    padding: 4rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-logo {
    max-width: 100px;
    height: auto;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    border: 1px solid var(--color-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-speed) ease;
}

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

.stat-card, .amenity-item, .feature-box {
    transition: all var(--transition-speed) ease;
}

.stat-card:hover, .amenity-item:hover, .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-control {
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 188, 156, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger, .alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer-section {
    background-color: var(--color-secondary);
    color: var(--color-light);
}

.footer-logo {
    filter: brightness(0) invert(1);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.bg-secondary {
    background-color: var(--color-secondary) !important;
}

.rounded {
    border-radius: var(--radius-md);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet and below */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .main-hero-section {
        padding: 3rem 0;
    }
    
    .hero-slider-section {
        padding-bottom: 56.25%; /* 16:9 aspect ratio on tablets too */
    }
    
    .hero-slider-section .carousel-item img {
        object-position: center center;
    }
    
    .hero-slider-section .carousel-caption {
        padding: 1.5rem 1rem;
        bottom: 2rem;
        left: 5%;
        right: 5%;
    }
    
    .hero-slider-section .carousel-caption h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-slider-section .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .hero-logo {
        max-width: 150px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .navbar {
        background-color: rgba(255, 255, 255, 0.7);
    }
    
    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.85);
    }
}

/* Mobile */
@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-slider-section {
        padding-bottom: 75%; /* Taller on mobile - 4:3 aspect ratio */
    }
    
    .hero-slider-section .carousel-item img {
        object-position: center center; /* Show full width on mobile */
    }
    
    .hero-slider-section .carousel-caption {
        padding: 1rem 0.75rem;
        bottom: 1rem;
        left: 3%;
        right: 3%;
    }
    
    .hero-slider-section .carousel-caption h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-slider-section .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .navbar-brand .logo {
        height: 40px;
    }
    
    .tagline {
        font-size: 1.25rem;
    }
    
    .navbar {
        background-color: rgba(255, 255, 255, 0.6);
    }
    
    .navbar.scrolled {
        background-color: rgba(255, 255, 255, 0.8);
    }
}

/* ============================================================================
   ANIMATION CLASSES
   ============================================================================ */

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================================================
   PASSWORD STRENGTH INDICATOR
   ============================================================================ */

.password-strength {
    height: 5px;
    border-radius: 3px;
    margin-top: 5px;
    transition: all var(--transition-speed) ease;
}

.password-strength.weak {
    width: 33%;
    background-color: #dc3545;
}

.password-strength.medium {
    width: 66%;
    background-color: #ffc107;
}

.password-strength.strong {
    width: 100%;
    background-color: #28a745;
}

/* ============================================================================
   PROFILE PAGE STYLES
   ============================================================================ */

.profile-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
}

.profile-card {
    margin-bottom: var(--spacing-lg);
}

/* ============================================================================
   ADMIN PAGE STYLES
   ============================================================================ */

.user-card {
    border: 2px solid var(--color-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.user-card.admin {
    border-color: #28a745;
}

.user-card.unverified {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.user-card.inactive {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: #17a2b8;
    color: white;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .navbar,
    .footer-section,
    .btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
