/*
 * Common Styles for Wedding Website
 * Shared across all pages
 */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== TYPOGRAPHY ==================== */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* ==================== HERO SECTIONS ==================== */
.hero {
    height: 100vh;
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), url('/statics/VillaDecio.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero.hero-small {
    height: 40vh;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--primary-beige)
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--primary-beige)
}

/* ==================== CARDS ==================== */
.card,
.welcome-card {
    background: var(--overlay-light);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-card {
    max-width: 450px;
}

.event-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 0;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-10px);
}

.upload-card,
.filter-card {
    background: white;
    border-radius: 0;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-card);
}

.filter-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ==================== CONTAINERS & LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section {
    padding: 2rem 0;
}

/* ==================== FORMS & INPUTS ==================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-input);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: var(--focus-ring);
    background: var(--bg-white);
}

option {
    outline: none;
    border-color: var(--primary-teal);
    border-radius: 8px;
    box-shadow: var(--focus-ring);
    background: var(--bg-white);
    color: var(--text-primary);
    width: 100%;
    padding: 0.5rem;  /* Often ignored */
    font-weight: 500;  /* Sometimes works */
}

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

label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ==================== NAVIGATION & LINKS ==================== */
.back-link,
.nav-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--overlay-glass);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.back-link:hover,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.logout,
.exit-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--overlay-glass);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    text-decoration: none;
}

.logout:hover,
.exit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== FILE UPLOAD ==================== */
.file-input {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: block;
    padding: 1rem;
    border: 2px dashed var(--primary-teal);
    border-radius: 8px;
    text-align: center;
    color: var(--primary-teal);
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.file-label:hover {
    background: rgba(80, 103, 102, 0.05);
}

/* ==================== GALLERY & MEDIA ==================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.media-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.media-card:hover {
    transform: translateY(-5px);
}

.media-card img,
.media-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}

.media-info {
    padding: 1rem;
}

/* ==================== COMMENTS & INTERACTIONS ==================== */
.comment {
    background: var(--bg-light);
    padding: 0.5rem;
    margin: 0.25rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comment-input,
.tag-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content:center; 
    align-items:center;
}

.modal-content {
    display:flex;
    position: absolute;
    /* justify-content:center; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
}

.modal img,
.modal video {
/*    width: 100%; 
    height: auto;  */
    max-width:90vw;
    max-height:80vh;
    border-radius: 10px;
    box-shadow:0 4px 32px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero {
        background-position: 20% center;
    }

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

    .container {
        padding: 2rem 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .card,
    .welcome-card,
    .upload-card {
        padding: 2rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .media-card {
        border-radius: 12px;
    }

    .media-card img,
    .media-card video {
        height: 180px;
    }
}

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

/* Button Type 1: Beige background with teal text */
.btn-primary,
.btn-type-1 {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: 2px solid var(--btn-primary-bg);
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    padding: 1.2rem 2.5rem;
    margin: 0.5rem 0.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
}


.btn-primary:hover,
.btn-type-1:hover {
    background: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Button Type 2: Teal background with beige text (inverted) */
.btn-secondary,
.btn-type-2,
.btn-inverted {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 2px solid var(--btn-secondary-bg);
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    display: inline-block;
    padding: 1.2rem 2.5rem;
    margin: 0.5rem 0.5rem;
}

.btn-secondary:hover,
.btn-type-2:hover,
.btn-inverted:hover {
    background: var(--btn-secondary-hover-bg);
    color: var(--btn-secondary-hover-text);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Common Input Focus Styles */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-teal);
    box-shadow: var(--focus-ring);
}

/* Common Tag Styles */
.tag {
    background: var(--primary-teal);
    color: var(--primary-beige);
}
