/**
 * DOB (Date of Birth) Modal - Για χρήστες 15 ετών και άνω
 * Εμφανίζεται παράλληλα με το cookie banner κατά την πρώτη επίσκεψη
 */

#dob-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#dob-modal-overlay.dob-modal-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#dob-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#dob-modal-overlay.dob-modal-visible #dob-modal {
    transform: scale(1);
}

/* Header: logo + brand */
.dob-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dob-modal-logo {
    width: 48px;
    height: 48px;
    background: #0c0f1c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dob-modal-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.dob-modal-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c0f1c;
    letter-spacing: -0.02em;
}

/* Welcome */
.dob-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c0f1c;
    margin: 0 0 8px 0;
}

.dob-modal-desc {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 16px 0;
}

/* Age badge */
.dob-modal-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 24px;
}

.dob-modal-age-badge .icon {
    font-size: 1rem;
    opacity: 0.8;
}

/* DOB inputs */
.dob-modal-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0c0f1c;
    margin-bottom: 12px;
    display: block;
}

.dob-modal-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 12px;
    margin-bottom: 24px;
}

.dob-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dob-modal-field label {
    font-size: 0.8125rem;
    color: #6b7280;
}

.dob-modal-field input {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dob-modal-field input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.dob-modal-field input::placeholder {
    color: #9ca3af;
}

.dob-modal-field input.invalid {
    border-color: #ef4444;
}

.dob-modal-error {
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: -16px;
    margin-bottom: 16px;
}

/* Buttons */
.dob-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dob-modal-btn {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.dob-modal-btn-primary {
    background: #6b7280;
    color: #ffffff;
}

.dob-modal-btn-primary:hover {
    background: #4b5563;
}

.dob-modal-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.dob-modal-btn-secondary:hover {
    background: #f9fafb;
}

/* Footer: terms */
.dob-modal-footer {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: #9ca3af;
    line-height: 1.5;
    text-align: center;
}

.dob-modal-footer a {
    color: #6b7280;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dob-modal-footer a:hover {
    color: #374151;
}
