/* LCARS Perseids Wedding - Custom Styles */
/* All styling matches the original LCARS-24.2 Classic Theme */

/* Smooth scrolling - already in classic.css, but keeping for reference */
html {
    scroll-behavior: smooth;
}

/* stabilize width of sidebar on mobile */
@media (max-width: 525px) {
    .left-frame-top, 
    .left-frame {
        width: var(--lfw) !important;
        min-width: var(--lfw) !important;
        box-sizing: border-box;
    }
}

/* Section spacing - using LCARS standard margins */
.wedding-section {
    padding: 0;
    margin: 0;
}

/* Headings - using original LCARS styling from classic.css */
/* h1, h2, h3, h4 already styled in classic.css with:
   - margin-block: 1.75rem
   - font-weight: normal
   - line-height: 1.2
   - text-transform: uppercase
   - text-box: trim-both cap alphabetic
*/

/* Override heading colors to match image - orange for h2/h3, red for h4 */
.wedding-section h2,
.wedding-section h3 {
    color: var(--orange) !important;
}

.wedding-section h4 {
    color: var(--red) !important;
}

/* Paragraph text - purple for balance */
p {
    color: var(--african-violet);
}

/* LCARS Text Bar - fix black bars to match bar height */
.wedding-section .lcars-text-bar::before,
.wedding-section .lcars-text-bar::after {
    height: clamp(16px, 4vh, 41px) !important;
    max-height: clamp(16px, 4vh, 41px) !important;
}

/* Add spacing below panel 10 */
.panel-10 {
    border-bottom: var(--panel-border) !important;
}

/* Hero section - using LCARS standard styling */
.hero-section {
    text-align: left;
    padding: 0;
    margin: 0;
}

/* Secure channel text - small, top right */
.secure-channel {
    color: var(--space-white);
    font-size: clamp(0.75rem, 0.7rem + 0.5vw, 1rem);
    text-align: right;
    padding-top: 10px;
    padding-right: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-names {
    color: var(--orange);
    font-size: clamp(1.8rem, 1.4rem + 2.5vw, 3rem);
    font-weight: normal;
    text-align: center;
    margin: 1rem 0 2rem 0;
    text-transform: uppercase;
    word-break: keep-all;
    hyphens: none;
}

.hero-details {
    color: var(--african-violet);
    font-size: clamp(1.15rem, 1.05rem + 1.25vw, 1.875rem);
    margin: 0.5rem 0;
}

/* Hero date and stardate - labels purple, values red */
.hero-date,
.hero-stardate {
    color: var(--african-violet) !important;
}

.hero-date-value,
.hero-time-value,
.hero-stardate-value {
    color: var(--red) !important;
}

/* Hero venue - bluey color (matches Our Story button) */
.hero-venue {
    color: var(--bluey) !important;
}

/* Live long and prosper - bluey color */
.prosper-text {
    color: var(--bluey) !important;
}

.stardate {
    color: var(--african-violet);
    font-size: clamp(1.025rem, 1rem + 1.125vw, 1.575rem);
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Hero image styling */
.hero-section .col img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Center the image */
}

/* Make border fit the image content */
.hero-section .col img.border {
    width: auto;
    max-width: 100%;
}

/* Google Maps iframe border - match hero image styling */
.info-block iframe.border {
    width: 100%;
    max-width: 100%;
    display: block;
    border: 2px solid var(--african-violet);
}

/* Mission briefing - standard LCARS spacing */
.mission-briefing {
    margin-block: 1.75rem;
}

.mission-briefing > *:first-child {
    margin-top: 0;
}

.mission-briefing > *:last-child {
    margin-bottom: 0;
}

/* Timeline styling - standard LCARS spacing */
.timeline-item {
    margin-block: 1.75rem;
}

.timeline-item > *:first-child {
    margin-top: 0;
}

.timeline-item > *:last-child {
    margin-bottom: 0;
}

.timeline-time {
    color: var(--orange);
    font-weight: bold;
    font-size: clamp(1.15rem, 1.05rem + 1.25vw, 1.875rem);
}

.timeline-event {
    color: var(--african-violet);
    margin-top: 0.3rem;
}

/* Info blocks - standard LCARS spacing */
.info-block {
    margin-block: 1.75rem;
}

.info-block > *:first-child {
    margin-top: 0;
}

.info-block > *:last-child {
    margin-bottom: 0;
}

.info-block h4 {
    color: var(--red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: clamp(1.025rem, 1rem + 1.125vw, 1.575rem);
}

/* TBD styling */
.tbd-notice {
    color: var(--bluey);
    font-style: italic;
    opacity: 0.8;
}

/* Sub-fonts class - matching LCARS standard */
.sub-fonts {
    font-size: var(--sub-fonts);
}

/* Coordinates display - using LCARS standard font */
.coordinates {
    font-family: 'Antonio', 'Arial Narrow', 'Avenir Next Condensed', sans-serif;
    color: var(--space-white) !important;
    font-size: var(--sub-fonts);
    opacity: 1;
    letter-spacing: 0.05em;
}

/* Template credit - much smaller */
.template-credit {
    font-size: clamp(0.6rem, 0.5rem + 0.3vw, 0.75rem);
    color: var(--gray);
}

/* Template credit link - match text color */
.template-credit a {
    color: var(--gray) !important;
    text-decoration: none;
}

.template-credit a:hover {
    color: var(--gray) !important;
    text-decoration: underline;
}

/* Quote styling - using LCARS blockquote style */
.star-trek-quote {
    margin-block: 1.75rem;
    margin-left: 1.5rem;
    padding-block: .25rem;
    padding-left: 1.5rem;
    position: relative;
    text-box: trim-both cap alphabetic;
    border-left: none;
    font-style: italic;
    color: var(--violet-creme);
}

.star-trek-quote::before {
    content: '';
    display: block;
    width: 10px;
    height: 100%;
    background-color: var(--font-color);
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 0;
}

.star-trek-quote > *:first-child {
    margin-top: 0;
}

.star-trek-quote > *:last-child {
    margin-bottom: 0;
}

.quote-author {
    text-align: left;
    margin-top: 0.5rem;
    color: var(--bluey);
    font-size: var(--sub-fonts);
}

/* Button link styling - using LCARS button style */
.wedding-button {
    display: inline-block;
    background-color: var(--button-color);
    color: black;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 100vmax;
    margin: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.wedding-button:hover {
    filter: brightness(115%);
}

.wedding-button:active {
    filter: brightness(85%);
}

/* Fade in animation for sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== */
/* RSVP FORM STYLES     */
/* ===================== */

.rsvp-password-wrap {
    max-width: 320px;
    margin: 1.5rem auto;
}

.lcars-form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.lcars-label {
    display: block;
    color: var(--orange);
    font-size: var(--sub-fonts);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.lcars-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--bluey);
    border-radius: 4px;
    color: var(--space-white);
    font-family: inherit;
    font-size: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
    padding: 0.7rem 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lcars-input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.lcars-input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 8px rgba(255, 136, 0, 0.3);
}

.lcars-textarea {
    min-height: 80px;
    resize: vertical;
}

/* Radio buttons */
.lcars-radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.lcars-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--space-white);
    font-size: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lcars-radio input[type="radio"] {
    display: none;
}

.lcars-radio-btn {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bluey);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.lcars-radio input[type="radio"]:checked + .lcars-radio-btn {
    border-color: var(--orange);
}

.lcars-radio input[type="radio"]:checked + .lcars-radio-btn::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
}

/* Fieldset for plus one */
.lcars-fieldset {
    border: 2px solid var(--african-violet);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0 0 0;
}

.lcars-legend {
    color: var(--african-violet);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--sub-fonts);
    padding: 0 0.5rem;
}

/* Error and status messages */
.lcars-error {
    color: var(--mars);
    font-size: var(--sub-fonts);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lcars-status {
    margin-top: 1rem;
    font-size: var(--sub-fonts);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lcars-status.success {
    color: var(--lima-bean);
}

.lcars-status.error {
    color: var(--mars);
}

.lcars-status.sending {
    color: var(--ice);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive adjustments - matching LCARS breakpoints */
@media (max-width: 1300px) {
    .hero-names {
        font-size: clamp(1.2rem, 1rem + 1.5vw, 2rem);
    }
    
    .hero-details {
        font-size: clamp(1rem, 0.9rem + 1vw, 1.5rem);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: clamp(1.5rem, 1.25rem + 3.5vw, 4rem);
    }
    
    .hero-names {
        font-size: clamp(1.1rem, 0.9rem + 1.2vw, 1.6rem);
        line-height: 1.2;
    }
}

/* Specific override for the long #09 panel on mobile */
@media (max-width: 525px) {
    .left-frame .panel-9 {
        height: 60px !important;    /* Forces a specific height */
        min-height: 60px !important; 
        max-height: 60px !important;
        flex: none !important;      /* Prevents it from growing to fill space */
        padding: var(--left-frame-padding) !important;
    }

    /* Optional: If you want panel 10 to be the one that fills the space instead */
    .left-frame .panel-10 {
        height: auto !important;
        min-height: 100px !important;
    }
}