/* ==========================================================================
   Christopher & Jordan Wedding Website - Shared Styles
   Design System extracted from existing site
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Color Variables (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
    --gold-primary: #d4af37;
    --gold-light: #f4e5b8;
    --text-dark: #1a1a1a;
    --text-medium: #666;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-off-white: #fafafa;
    --border-light: #f0f0f0;
    --error-red: #c0392b;
    --success-green: #27ae60;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.monogram {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b8 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.monogram a {
    text-decoration: none;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b8 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.domain {
    font-size: 14px;
    letter-spacing: 3px;
    color: #666;
    font-weight: 300;
    margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4af37;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Divider
   -------------------------------------------------------------------------- */
.divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 40px auto;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

/* --------------------------------------------------------------------------
   Announcement (Home Page)
   -------------------------------------------------------------------------- */
.announcement {
    text-align: center;
    font-size: 16px;
    line-height: 2;
}

.announcement .together {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
}

.names {
    font-size: 32px;
    font-weight: 400;
    margin: 25px 0;
    letter-spacing: 1px;
}

.and {
    font-size: 20px;
    font-style: italic;
    color: #d4af37;
    margin: 15px 0;
}

.invite-text {
    font-style: italic;
    color: #666;
    margin: 25px 0;
}

.date-venue {
    font-size: 18px;
    margin: 25px 0;
}

.date {
    font-weight: 600;
    color: #1a1a1a;
}

.venue-name {
    margin-top: 15px;
    color: #1a1a1a;
}

.location {
    color: #666;
    font-size: 15px;
}

.closing-text {
    margin-top: 30px;
    font-style: italic;
    color: #666;
}

/* --------------------------------------------------------------------------
   Venue Details
   -------------------------------------------------------------------------- */
.venue-details {
    background: #fafafa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px solid #f0f0f0;
}

.venue-address {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.map-embed {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --------------------------------------------------------------------------
   Dress Code
   -------------------------------------------------------------------------- */
.dress-code-content {
    text-align: center;
}

.dress-code-label {
    font-size: 24px;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 20px;
}

.dress-code-description {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
}

/* --------------------------------------------------------------------------
   Registry & Gallery Content
   -------------------------------------------------------------------------- */
.registry-content, .gallery-content {
    text-align: center;
    color: #666;
    line-height: 2;
}

.coming-soon {
    font-style: italic;
    margin: 20px 0;
}

/* --------------------------------------------------------------------------
   Placeholders
   -------------------------------------------------------------------------- */
.map-placeholder,
.link-placeholder {
    background: #ffffff;
    border: 2px dashed #d4af37;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.link-placeholder {
    padding: 30px 20px;
    margin-top: 25px;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group label .required {
    color: #c0392b;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 15px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.form-hint {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-top: 5px;
}

.char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.char-count.warning {
    color: #e67e22;
}

.char-count.limit {
    color: #c0392b;
}

/* --------------------------------------------------------------------------
   Radio & Checkbox Groups
   -------------------------------------------------------------------------- */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option input,
.checkbox-option input {
    width: 20px;
    height: 20px;
    accent-color: #d4af37;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b8 50%, #d4af37 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid #f0f0f0;
}

.btn-secondary:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Code Input (RSVP)
   -------------------------------------------------------------------------- */
.code-input-wrapper {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.code-input {
    font-size: 32px;
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
    padding: 20px;
    font-family: 'Georgia', serif;
    width: 100%;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: #d4af37;
}

.code-input::placeholder {
    letter-spacing: 4px;
    font-size: 18px;
    color: #ccc;
}

/* --------------------------------------------------------------------------
   Messages & Alerts
   -------------------------------------------------------------------------- */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.message-error {
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    color: #c0392b;
}

.message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #27ae60;
}

.message-info {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    color: #666;
}

/* --------------------------------------------------------------------------
   Guest Info Card (RSVP)
   -------------------------------------------------------------------------- */
.guest-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.guest-card h3 {
    font-size: 24px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.guest-card p {
    color: #666;
    font-style: italic;
}

.guest-count-display {
    font-size: 18px;
    color: #d4af37;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Guest Attendance List
   -------------------------------------------------------------------------- */
.guest-list {
    margin: 30px 0;
}

.guest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
}

.guest-item:last-child {
    margin-bottom: 0;
}

.guest-name {
    font-size: 16px;
    color: #1a1a1a;
}

.attendance-toggle {
    display: flex;
    gap: 10px;
}

.attendance-toggle button {
    padding: 8px 20px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #666;
}

.attendance-toggle button.selected-yes {
    background: #f0fdf4;
    border-color: #27ae60;
    color: #27ae60;
}

.attendance-toggle button.selected-no {
    background: #fdf2f2;
    border-color: #c0392b;
    color: #c0392b;
}

.attendance-toggle button:hover:not(.selected-yes):not(.selected-no) {
    border-color: #d4af37;
    color: #d4af37;
}

/* --------------------------------------------------------------------------
   Song Request List
   -------------------------------------------------------------------------- */
.recent-songs {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.recent-songs h3 {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.song-item:last-child {
    border-bottom: none;
}

.song-info {
    flex: 1;
}

.song-title {
    font-weight: 600;
    color: #1a1a1a;
}

.song-artist {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.song-genre {
    font-size: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b8 100%);
    color: #1a1a1a;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-songs {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* --------------------------------------------------------------------------
   Loading States
   -------------------------------------------------------------------------- */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* --------------------------------------------------------------------------
   Turnstile Container
   -------------------------------------------------------------------------- */
.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    color: #999;
    font-size: 14px;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Hidden Utility
   -------------------------------------------------------------------------- */
.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .monogram {
        font-size: 48px;
        letter-spacing: 4px;
    }

    .names {
        font-size: 24px;
    }

    .section {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .code-input {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .guest-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 15px;
    }
}
