/*
 * Pearl Cipher Styles
 * A luxury event planning platform styling
 */

/* Base Variables
   These colors and values can be reused throughout the application,
   making it easy to maintain a consistent theme */
:root {
    /* Color Palette */
    --primary-dark: #1a2942; /* Deep navy for primary backgrounds */
    --primary-light: #2c3e50; /* Lighter navy for gradients and accents */
    --accent-gold: #c4a77d; /* Warm gold for interactive elements */
    --accent-cream: #e5d3b3; /* Light cream for subtle highlights */
    --text-light: #ffffff; /* White text for dark backgrounds */
    --text-dark: #333333; /* Dark gray for body text */

    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
}

/* Reset Styles
   Ensures consistent starting point across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles
   Sets the foundation for typography and general appearance */
body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hero Section
   The main landing area with gradient background and shimmer effect */
.hero {
    background: linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary-light)
    );
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Hero Background Effect
   Creates a subtle animated shimmer in the background */
.hero::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(196, 167, 125, 0.1) 0%,
        transparent 70%
    );
    animation: shimmer 15s infinite linear;
}

/* Animation for the background shimmer effect */
@keyframes shimmer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Navigation Styles
   Top navigation bar with logo and links */
.nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    z-index: 1;
}

/* Logo Styling */
.logo {
    font-family: "Playfair Display", serif;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    gap: 2rem;
}

/* Individual Navigation Links */
.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-gold);
}

/* Hero Content
   Main headline and call-to-action area */
.hero-content {
    max-width: 800px;
    text-align: center;
    margin-top: 8rem;
    z-index: 1;
}

/* Main Headline */
.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Subtitle Text */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Call-to-Action Button */
.cta-button {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 167, 125, 0.3);
}

/* Features Section
   Grid layout for feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

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

/* Feature Card Elements */
.feature-icon {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-description {
    color: var(--text-dark);
    opacity: 0.8;
}

/* Login Form Styles
   Styles for the authentication pages */
.login-container {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    z-index: 1;
    margin-top: 2rem;
}

.login-title {
    font-family: "Playfair Display", serif;
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(196, 167, 125, 0.2);
}

.login-button {
    width: 100%;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 167, 125, 0.3);
}

.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.forgot-password a:hover {
    color: var(--accent-gold);
}

/* Dashboard Modifications
   Minor adjustments to base styles for dashboard context */
.hero-content .hero-title {
    margin-top: 2rem; /* Reduced top margin for dashboard context */
}

.hero-content .hero-subtitle {
    font-weight: 500; /* Slightly bolder for dashboard info */
}

/* Mobile App Container
   This constrains the app to iPhone 13 Pro dimensions */
body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    /* Centers the app container on larger screens */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f5f5f5; /* Light background outside the app container */
}

.app-container {
    width: 390px; /* iPhone 13 Pro width */
    height: 844px; /* iPhone 13 Pro height */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: white;
    /* Optional: adds subtle shadow to make it look like a device */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Adjust hero section for mobile container */
.hero {
    min-height: 100%;
    width: 100%;
    /* Remove any horizontal padding that might cause overflow */
    padding: 1rem;
}

/* Adjust navigation for mobile view */
.nav {
    padding: 1rem;
    width: 100%;
    /* Add iOS-style safe area padding at the top */
    padding-top: calc(1rem + env(safe-area-inset-top, 20px));
}

/* Event Creation Styles */
.event-creation-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    margin-top: 1rem;
}

.event-form {
    width: 100%;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: white;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(196, 167, 125, 0.2);
}

.services-label {
    display: block;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card {
    position: relative;
    text-align: center;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--accent-gold);
}

.service-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.service-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.service-card i {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.service-checkbox:checked + label {
    color: var(--accent-gold);
}

.service-checkbox:checked + label i {
    color: var(--accent-gold);
}

.service-card:has(.service-checkbox:checked) {
    border-color: var(--accent-gold);
    background-color: rgba(196, 167, 125, 0.1);
}

/* Responsive Design
   Adjustments for smaller screens */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }
}
