/* Base Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px; /* Constrained for mobile-first portrait view */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    text-align: left;
    width: 100%;
}

input[type="text"], 
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea,
button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

button {
    background-color: #28a745;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #218838;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Video & Portrait Constraints */
.video-wrapper {
    width: 100%;
    margin: 0 auto 15px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

video {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 16; /* Portrait Orientation */
    object-fit: cover;
    max-height: 70vh;
}

/* Metadata Display */
.theme-meta {
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* --- THEMES --- */

/* Postcard Theme */
.style-postcard {
    background-color: #fdf5e6 !important; /* Cream paper */
    font-family: 'Georgia', serif;
    border: 12px solid #fff;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}
.style-postcard .theme-meta {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

/* Zine Theme */
.style-zine {
    background-color: #000 !important;
    color: #ff00ff !important; /* Neon Pink */
    font-family: 'Courier New', monospace;
    border: 4px dashed #00ff00; /* Neon Green */
    border-radius: 0;
}
.style-zine .theme-meta {
    background: #00ff00;
    color: #000;
    font-weight: bold;
    padding: 5px;
    text-transform: uppercase;
}
.style-zine button {
    background-color: #ff00ff;
    color: #000;
    border-radius: 0;
}

/* Letter Theme */
.style-letter {
    background-color: #fffaf0 !important;
    font-family: 'Times New Roman', serif;
    border: 1px solid #dcdcdc;
    padding: 30px;
}
.style-letter .theme-meta {
    font-style: italic;
    text-align: left;
    border-left: 3px solid #704214;
    padding-left: 10px;
}

/* Heartfelt Theme (Warm & Respectful) */
.style-heartfelt {
    background: linear-gradient(135deg, #fff5f5, #fef0e6) !important;
    border-radius: 24px;
    color: #5d4037;
    font-family: 'Georgia', serif;
}
.style-heartfelt .theme-meta {
    font-size: 1.2rem;
    color: #8d6e63;
}
.style-heartfelt button {
    background-color: #8d6e63;
}

/* Progress Bar */
#progressBar {
    width: 100%;
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

#progressFill {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    transition: width 0.4s ease;
}

/* Comment Section */
#commentWrapper {
    width: 100%;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

textarea {
    resize: none;
    height: 80px;
}

#showCommentBtn {
    background-color: transparent;
    color: inherit;
    border: 1px solid currentColor;
    font-size: 14px;
    padding: 8px;
}
/* --- GALA THEME (End of Year Recap) --- */
.style-gala {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a) !important;
    color: #e5e5e5 !important; /* Silver/Platinum Text */
    font-family: 'Playfair Display', 'Times New Roman', serif;
    border: 2px solid #c0c0c0; /* Silver metallic border */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.style-gala .theme-meta {
    font-size: 1.8rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Glitzy Comment Box for Gala */
.style-gala #showCommentBtn {
    border: 1px solid #c0c0c0;
    color: #c0c0c0;
    background: rgba(255, 255, 255, 0.05);
}

.style-gala #commentForm textarea {
    background: #333;
    color: #fff;
    border: 1px solid #c0c0c0;
}

.style-gala #submitCommentBtn {
    background: linear-gradient(90deg, #c0c0c0, #e5e5e5, #c0c0c0);
    color: #000;
    border: none;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
    text-transform: uppercase;
}

