/* ========================================
   SAFETY - MEDICAL ARCADE THEME
   ======================================== */

:root {
    --safety-red: #FF6B7A;
    /* Medical red */
    --safety-green: #7FFF00;
    /* Virus green */
    --safety-white: #F0F8FF;
    /* Clean white */
    --safety-dark: #2C1810;
}

.safety-page {
    background: linear-gradient(to bottom, #1a1a1a, #2d2020);
    color: #ffffff;
}

/* Hero Section */
.safety-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 122, 0.15), transparent 70%);
}

.safety-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(127, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: virus-pulse 3s ease-in-out infinite;
}

@keyframes virus-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.safety-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--safety-red);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.safety-title {
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    font-family: 'DM Sans', sans-serif;
}

.safety-text-primary {
    background: linear-gradient(135deg, var(--safety-red), #FF3D71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 107, 122, 0.5);
}

.safety-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--safety-white);
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease-out 0.4s backwards;
}

.safety-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1.4s ease-out 0.6s backwards;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 107, 122, 0.08);
    border: 2px solid var(--safety-red);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 122, 0.4);
    background: rgba(255, 107, 122, 0.15);
}

.stat-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--safety-red);
    margin-bottom: 0.5rem;
    font-family: 'DM Sans', sans-serif;
}

.stat-lbl {
    display: block;
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Sections */
.safety-section {
    padding: 6rem 0;
    position: relative;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

.section-head h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--safety-red), var(--safety-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--safety-red), var(--safety-green));
    margin: 0 auto;
    border-radius: 2px;
}

/* Feature Cards */
.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.safety-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 107, 122, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.safety-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 255, 0, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.safety-card:hover::before {
    opacity: 1;
}

.safety-card:hover {
    background: rgba(255, 107, 122, 0.08);
    border-color: var(--safety-red);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 122, 0.3);
}

.safety-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--safety-red);
    font-weight: 700;
}

.safety-card p {
    color: #ccc;
    line-height: 1.8;
}

/* How to Play Section */
.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.play-step {
    background: rgba(127, 255, 0, 0.05);
    border-left: 4px solid var(--safety-green);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.play-step:hover {
    background: rgba(127, 255, 0, 0.1);
    transform: translateX(10px);
}

.play-step h4 {
    color: var(--safety-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.play-step p {
    color: #ddd;
    line-height: 1.6;
}

/* Why Play Section */
.why-play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-play-item {
    padding: 1.5rem;
    background: rgba(255, 107, 122, 0.05);
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 122, 0.3);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 3.5rem;
}

.why-play-item::before {
    content: '💉';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
}

.why-play-item:hover {
    background: rgba(255, 107, 122, 0.1);
    border-color: var(--safety-red);
    transform: translateY(-5px);
}

/* Gallery */
.safety-gallery-main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--safety-red);
    box-shadow: 0 10px 40px rgba(255, 107, 122, 0.3);
}

.safety-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.safety-gallery-main img:hover {
    transform: scale(1.02);
}

/* Button */
.btn-safety {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--safety-red), #FF3D71);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 122, 0.4);
    border: none;
    cursor: pointer;
}

.btn-safety:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 122, 0.6);
}

/* Footer */
.safety-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 0;
    text-align: center;
    border-top: 2px solid rgba(255, 107, 122, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .safety-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-to-play-grid,
    .why-play-grid {
        grid-template-columns: 1fr;
    }
}