/**
 * Security Page Styles
 * SkoolBeez - Matching Login Theme
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --sec-bg-dark: #0d1b2a;
    --sec-bg-mid: #1b263b;
    --sec-bg-light: #415a77;
    --sec-accent: #ffed00;
    --sec-accent-alt: #ffc300;
    --sec-text: #ffffff;
    --sec-text-muted: rgba(255, 255, 255, 0.6);
    --sec-text-dim: rgba(255, 255, 255, 0.4);
    --sec-border: rgba(255, 255, 255, 0.1);
    --sec-card-bg: rgba(255, 255, 255, 0.03);
    --sec-success: #10b981;
    --sec-success-bg: rgba(16, 185, 129, 0.1);
}

/* ========================================
   Page Layout
   ======================================== */
.security-page {
    min-height: 100vh;
    margin-top: -80px;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--sec-bg-dark) 0%, var(--sec-bg-mid) 50%, var(--sec-bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.security-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 237, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.security-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ========================================
   Honeycomb Pattern Background
   ======================================== */
.honeycomb-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-12l20-12V22L28 10 8 22v20l20 12z' fill='%23ffed00' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: honeycombFloat 20s ease-in-out infinite;
}

@keyframes honeycombFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* ========================================
   Flying Bees Decoration
   ======================================== */
.flying-bee {
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0.15;
    animation: flyAround 15s linear infinite;
    z-index: 1;
}

.flying-bee:nth-child(1) {
    top: 10%;
    left: 6%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.flying-bee:nth-child(2) {
    top: 30%;
    right: 8%;
    animation-delay: -4s;
    animation-duration: 24s;
}

.flying-bee:nth-child(3) {
    bottom: 35%;
    left: 10%;
    animation-delay: -9s;
    animation-duration: 22s;
}

.flying-bee:nth-child(4) {
    top: 60%;
    right: 12%;
    animation-delay: -14s;
    animation-duration: 18s;
}

@keyframes flyAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(10deg); }
    50% { transform: translate(100px, 20px) rotate(-5deg); }
    75% { transform: translate(50px, 50px) rotate(15deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ========================================
   Main Container
   ======================================== */
.security-container {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 80px);
    padding: 3rem 1rem;
}

/* ========================================
   Page Header
   ======================================== */
.security-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.security-header .header-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(145deg, var(--sec-success) 0%, #059669 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: white;
    box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.4);
    animation: shieldPulse 3s ease-in-out infinite;
    position: relative;
}

.security-header .header-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 28px;
    border: 2px dashed rgba(16, 185, 129, 0.3);
    animation: rotateBorder 20s linear infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 40px -10px rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 20px 50px -10px rgba(16, 185, 129, 0.5); }
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.security-header h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--sec-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.security-header .subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--sec-text-muted);
    font-weight: 600;
    max-width: 600px;
    margin: 0 auto;
}

.security-header .last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    background: var(--sec-success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--sec-success);
    font-weight: 600;
}

/* ========================================
   Security Status Banner
   ======================================== */
.security-status {
    max-width: 900px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-status .status-icon {
    width: 48px;
    height: 48px;
    background: var(--sec-success);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.security-status .status-text {
    flex: 1;
}

.security-status .status-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--sec-success);
    margin-bottom: 0.25rem;
}

.security-status .status-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--sec-text-muted);
    margin: 0;
}

@media (max-width: 640px) {
    .security-status {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Language Switcher
   ======================================== */
.language-switcher {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lang-btn {
    padding: 0.75rem 1.5rem;
    background: var(--sec-card-bg);
    border: 2px solid var(--sec-border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sec-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--sec-text);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--sec-accent) 0%, var(--sec-accent-alt) 100%);
    border-color: var(--sec-accent);
    color: var(--sec-bg-mid);
}

.lang-btn .flag {
    font-size: 1.2rem;
}

/* ========================================
   Content Card
   ======================================== */
.security-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--sec-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--sec-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 237, 0, 0.05);
}

@media (max-width: 768px) {
    .security-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

/* ========================================
   Content Sections
   ======================================== */
.security-content {
    display: none;
}

.security-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ========================================
   Intro Section
   ======================================== */
.security-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--sec-border);
}

.security-intro p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--sec-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.security-intro .highlight {
    color: var(--sec-text);
    font-weight: 700;
}

/* ========================================
   Features Grid
   ======================================== */
.features-label {
    text-align: center;
    margin-bottom: 2rem;
}

.features-label span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 237, 0, 0.1);
    border: 1px solid rgba(255, 237, 0, 0.2);
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--sec-accent);
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ========================================
   Feature Cards
   ======================================== */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sec-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sec-accent), var(--sec-accent-alt));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 237, 0, 0.2);
    transform: translateY(-4px);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sec-accent) 0%, var(--sec-accent-alt) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sec-bg-mid);
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -8px rgba(255, 237, 0, 0.3);
}

.feature-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--sec-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--sec-text-muted);
    margin: 0;
}

/* ========================================
   Compliance Section
   ======================================== */
.compliance-section {
    background: rgba(255, 237, 0, 0.05);
    border: 1px solid rgba(255, 237, 0, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.compliance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.compliance-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sec-accent) 0%, var(--sec-accent-alt) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--sec-bg-mid);
}

.compliance-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--sec-text);
    margin: 0;
}

.compliance-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sec-text-muted);
    margin: 0;
}

.compliance-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.compliance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--sec-border);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sec-text-muted);
}

.compliance-badge i {
    color: var(--sec-success);
}

/* ========================================
   Closing Note
   ======================================== */
.closing-note {
    text-align: center;
    padding: 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
}

.closing-note p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--sec-text-muted);
    margin: 0;
}

.closing-note strong {
    color: var(--sec-success);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem auto 0;
    padding: 0.875rem 1.5rem;
    background: var(--sec-card-bg);
    border: 2px solid var(--sec-border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--sec-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: rgba(255, 237, 0, 0.1);
    border-color: var(--sec-accent);
    color: var(--sec-accent);
    transform: translateY(-2px);
}

/* ========================================
   Footer Note
   ======================================== */
.security-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sec-border);
}

.security-footer p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--sec-text-dim);
    margin: 0;
}

.security-footer .logo {
    height: 30px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    filter: brightness(0) invert(1);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 640px) {
    .security-header h1 {
        font-size: 1.875rem;
    }
    
    .security-header .subtitle {
        font-size: 1rem;
    }
    
    .language-switcher {
        flex-direction: column;
        align-items: center;
    }
    
    .lang-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

    .security-features {
        grid-template-columns: 1fr;
    }

    .compliance-header {
        flex-direction: column;
        text-align: center;
    }

    .compliance-badges {
        justify-content: center;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .security-page {
        background: white;
        margin-top: 0;
        padding-top: 0;
    }
    
    .honeycomb-pattern,
    .flying-bee,
    .language-switcher,
    .back-to-top,
    .security-status {
        display: none !important;
    }
    
    .security-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .security-content {
        display: block !important;
    }
    
    .feature-icon,
    .compliance-icon {
        background: #ffed00 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .feature-title,
    .feature-desc,
    .compliance-title,
    .compliance-desc {
        color: #333 !important;
    }
}
