/**
 * FunCards - Age Verification Gate Styles
 * 18+ Adult Content Age Verification UI
 */

/* ================================================
   BASE STYLES
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* ================================================
   ANIMATED BACKGROUND PARTICLES
   ================================================ */

.bg-particle {
    position: absolute;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.bg-particle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation: float1 20s ease-in-out infinite;
}

.bg-particle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -30px;
    right: -30px;
    animation: float2 15s ease-in-out infinite;
}

.bg-particle:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.05); }
    66% { transform: translate(15px, -15px) scale(0.95); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, 30px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ================================================
   AGE GATE CONTAINER (LIQUID GLASS)
   ================================================ */

.age-gate-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    margin: auto;

    /* Liquid Glass Effect */
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.7) 0%,
        rgba(15, 23, 42, 0.8) 50%,
        rgba(30, 41, 59, 0.7) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 32px;
    padding: 50px 40px;
    text-align: center;

    /* Enhanced shadow with glow */
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 100px rgba(239, 68, 68, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.3);

    animation: slideIn 0.6s ease-out, glassShimmer 8s ease-in-out infinite;
}

/* Glass shimmer animation */
@keyframes glassShimmer {
    0%, 100% {
        box-shadow:
            0 8px 32px 0 rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            0 0 100px rgba(239, 68, 68, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow:
            0 8px 32px 0 rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 120px rgba(239, 68, 68, 0.25),
            0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   WARNING ICON
   ================================================ */

.warning-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
        filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.7));
    }
}

/* ================================================
   TITLE & SUBTITLE
   ================================================ */

.age-gate-title {
    font-size: 32px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow:
        0 0 20px rgba(239, 68, 68, 0.6),
        0 0 40px rgba(239, 68, 68, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(239, 68, 68, 0.6),
            0 0 40px rgba(239, 68, 68, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow:
            0 0 30px rgba(239, 68, 68, 0.8),
            0 0 60px rgba(239, 68, 68, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.5);
    }
}

.age-gate-subtitle {
    font-size: 18px;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* ================================================
   WARNING BOX
   ================================================ */

.age-gate-warning {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.15) 0%,
        rgba(220, 38, 38, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow:
        0 4px 16px rgba(239, 68, 68, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.age-gate-warning h3 {
    color: #ef4444;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-gate-warning p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.age-gate-warning ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.age-gate-warning li {
    color: #fca5a5;
    font-size: 14px;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.age-gate-warning li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

/* ================================================
   QUESTION BOX
   ================================================ */

.age-gate-question {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(37, 99, 235, 0.1) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

/* ================================================
   BUTTONS
   ================================================ */

.age-gate-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.age-gate-btn {
    flex: 1;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.age-gate-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.age-gate-btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn-confirm {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.9) 0%,
        rgba(22, 163, 74, 0.85) 100%);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: white;
    box-shadow:
        0 4px 15px rgba(34, 197, 94, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(34, 197, 94, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border-color: rgba(34, 197, 94, 0.7);
}

.btn-decline {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.9) 0%,
        rgba(220, 38, 38, 0.85) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: white;
    box-shadow:
        0 4px 15px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.btn-decline:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(239, 68, 68, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border-color: rgba(239, 68, 68, 0.7);
}

/* ================================================
   FOOTER
   ================================================ */

.age-gate-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #64748b;
    font-size: 12px;
}

/* ================================================
   YOUTH SUPPORT SCREEN (SAFE & CALM DESIGN)
   ================================================ */

.blocked-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef3 100%);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: hidden;
    animation: fadeInScreen 0.5s ease-out;
}

.blocked-screen.active {
    display: flex;
}

@keyframes fadeInScreen {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.youth-support-container {
    max-width: 700px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 40px;
    animation: slideUpFade 0.6s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.youth-header {
    text-align: center;
    margin-bottom: 30px;
}

.youth-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-20deg);
    }
}

.youth-title {
    font-size: 36px;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
}

/* Message */
.youth-message {
    color: #2c3e50;
    line-height: 1.8;
    margin-bottom: 35px;
}

.youth-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.youth-message strong {
    color: #4a90e2;
    font-weight: 700;
}

.youth-cta {
    font-size: 17px;
    font-weight: 600;
    color: #4a90e2;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    border: 2px solid #4a90e2;
    margin-top: 25px;
}

/* Resource Cards */
.resource-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border: 2px solid #d1d8e0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.resource-card:hover::before {
    opacity: 1;
}

/* Card specific colors */
.amaze-card {
    border-left: 6px solid #50c878;
}

.amaze-card:hover {
    border-color: #50c878;
    background: #f0fff4;
}

.scarleteen-card {
    border-left: 6px solid #4a90e2;
}

.scarleteen-card:hover {
    border-color: #4a90e2;
    background: #f0f8ff;
}

.parents-card {
    border-left: 6px solid #f5a623;
}

.parents-card:hover {
    border-color: #f5a623;
    background: #fffbf0;
}

.card-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.card-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8eef3;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #4a90e2;
}

.card-arrow {
    font-size: 32px;
    color: #d1d8e0;
    flex-shrink: 0;
    transition: all 0.3s;
}

.resource-card:hover .card-arrow {
    color: #4a90e2;
    transform: translateX(5px);
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border: 2px solid #f5a623;
    border-radius: 12px;
    margin-bottom: 25px;
}

.privacy-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.privacy-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.privacy-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
}

/* Footer */
.youth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #e8eef3;
}

.youth-footer p {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
    font-style: italic;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .age-gate-container {
        padding: 40px 25px;
        border-radius: 24px;
        max-width: 100%;
    }

    .warning-icon {
        font-size: 60px;
    }

    .age-gate-title {
        font-size: 24px;
    }

    .age-gate-subtitle {
        font-size: 16px;
    }

    .age-gate-warning {
        padding: 20px;
        border-radius: 12px;
    }

    .age-gate-question {
        font-size: 18px;
        padding: 15px;
        border-radius: 12px;
    }

    .age-gate-buttons {
        flex-direction: column;
    }

    .age-gate-btn {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 12px;
    }

    .age-gate-footer {
        font-size: 11px;
    }

    .youth-support-container {
        padding: 30px 25px;
    }

    .youth-icon {
        font-size: 60px;
    }

    .youth-title {
        font-size: 28px;
    }

    .youth-message p {
        font-size: 15px;
    }

    .youth-cta {
        font-size: 16px;
        padding: 15px;
    }

    .resource-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .card-icon {
        font-size: 40px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-arrow {
        font-size: 24px;
    }

    .privacy-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .age-gate-container {
        padding: 30px 20px;
    }

    .warning-icon {
        font-size: 50px;
    }

    .age-gate-title {
        font-size: 22px;
    }

    .age-gate-subtitle {
        font-size: 14px;
    }

    .youth-support-container {
        padding: 25px 20px;
        border-radius: 16px;
    }

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

    .card-title {
        font-size: 15px;
    }

    .card-description {
        font-size: 13px;
    }
}
