/**
 * 777 Angel Number - Main Stylesheet
 * CSS class prefix: scae-
 * Color palette: #6495ED (cornflower blue) | #FFEB3B (yellow) | #FFB347 (orange)
 *                #1B263B (dark navy) | #48D1CC (turquoise)
 */

/* ==================== Reset & Base ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1B263B;
    color: #f0f0f0;
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ==================== Typography ==================== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
.scae-h1 { font-size: 2rem; margin-bottom: 1rem; color: #FFEB3B; }
.scae-h2 { font-size: 1.6rem; margin-bottom: .8rem; color: #48D1CC; }
.scae-h3 { font-size: 1.3rem; margin-bottom: .6rem; color: #FFB347; }
p { margin-bottom: .8rem; color: #d0d0d0; }

/* ==================== Header ==================== */
.scae-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1B263B 0%, #0f1624 100%);
    border-bottom: 2px solid #48D1CC;
    padding: .8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(72, 209, 204, 0.15);
}
.scae-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}
.scae-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.scae-logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(90deg, #FFEB3B, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}
.scae-header-actions {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}
.scae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: all .25s ease;
    letter-spacing: .02em;
}
.scae-btn-register {
    background: linear-gradient(135deg, #FFEB3B, #FFB347);
    color: #1B263B;
    box-shadow: 0 2px 10px rgba(255, 235, 59, 0.35);
}
.scae-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(255, 235, 59, 0.5);
}
.scae-btn-login {
    background: transparent;
    color: #48D1CC;
    border: 1.5px solid #48D1CC;
}
.scae-btn-login:hover {
    background: rgba(72, 209, 204, 0.12);
    transform: translateY(-1px);
}
.scae-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(72, 209, 204, 0.12);
    border: 1px solid rgba(72, 209, 204, 0.3);
    border-radius: 10px;
    cursor: pointer;
    color: #48D1CC;
    font-size: 1.4rem;
    transition: all .2s;
}
.scae-menu-toggle:hover { background: rgba(72, 209, 204, 0.22); }

/* ==================== Mobile Menu Overlay ==================== */
.scae-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(11, 17, 30, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.scae-mobile-menu.scae-menu-open { opacity: 1; }
.scae-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.scae-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    cursor: pointer;
    color: #ff6b6b;
    font-size: 1.3rem;
}
.scae-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    font-size: 1.35rem;
    font-weight: 500;
    color: #e0e0e0;
    border-radius: 12px;
    transition: all .2s;
    border-bottom: 1px solid rgba(72, 209, 204, 0.08);
}
.scae-menu-link:hover { background: rgba(72, 209, 204, 0.1); color: #48D1CC; }
.scae-menu-link i { font-size: 1.5rem; width: 28px; text-align: center; color: #FFB347; }

/* ==================== Main Content ==================== */
.scae-main {
    padding-top: 60px;
    min-height: calc(100vh - 140px);
}
@media (max-width: 768px) {
    .scae-main { padding-bottom: 90px; }
}

/* ==================== Hero Section ==================== */
.scae-hero {
    background: linear-gradient(160deg, #1a2744 0%, #0f1829 40%, #162238 70%, #1B263B 100%);
    padding: 2rem 1.2rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.scae-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(100, 149, 237, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(72, 209, 204, 0.06) 0%, transparent 45%);
    animation: scae-hero-glow 8s ease-in-out infinite alternate;
}
@keyframes scae-hero-glow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, 2%) rotate(3deg); }
}
.scae-hero-content { position: relative; z-index: 1; }
.scae-hero-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #FFEB3B, #FFB347, #48D1CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .8rem;
    letter-spacing: -.02em;
}
.scae-hero-subtitle {
    font-size: 1.15rem;
    color: #b8c5d6;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.scae-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 2rem;
    background: linear-gradient(135deg, #6495ED, #48D1CC);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 28px;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 24px rgba(100, 149, 237, 0.4);
    transition: all .3s ease;
}
.scae-hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 32px rgba(100, 149, 237, 0.55);
}

/* ==================== Stats Bar ==================== */
.scae-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
    padding: 1.2rem;
    background: rgba(27, 38, 59, 0.8);
    border-top: 1px solid rgba(72, 209, 204, 0.15);
    border-bottom: 1px solid rgba(72, 209, 204, 0.15);
}
.scae-stat-item {
    text-align: center;
    padding: .6rem .4rem;
}
.scae-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFEB3B;
}
.scae-stat-label {
    font-size: .85rem;
    color: #8899aa;
    margin-top: .2rem;
}

/* ==================== Category Tabs ==================== */
.scae-category-tabs {
    display: flex;
    gap: .5rem;
    padding: 1rem 1rem .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.scae-category-tabs::-webkit-scrollbar { display: none; }
.scae-cat-btn {
    flex-shrink: 0;
    padding: .5rem 1rem;
    border-radius: 20px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid rgba(72, 209, 204, 0.25);
    background: rgba(27, 38, 59, 0.7);
    color: #aabbcc;
    transition: all .25s ease;
    white-space: nowrap;
}
.scae-cat-btn:hover { border-color: #48D1CC; color: #48D1CC; }
.scae-cat-btn.scae-active {
    background: linear-gradient(135deg, #48D1CC, #6495ED);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(72, 209, 204, 0.3);
}

/* ==================== Search Bar ==================== */
.scae-search-wrap {
    padding: 0 1rem .8rem;
}
.scae-search-input {
    width: 100%;
    padding: .65rem 1rem .65rem 2.6rem;
    border-radius: 22px;
    border: 1.5px solid rgba(72, 209, 204, 0.2);
    background: rgba(27, 38, 59, 0.8);
    color: #f0f0f0;
    font-size: 1.1rem;
    outline: none;
    transition: border-color .25s;
}
.scae-search-input:focus { border-color: #48D1CC; }
.scae-search-wrap { position: relative; }
.scae-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #667788;
    font-size: 1.1rem;
}

/* ==================== Game Grid ==================== */
.scae-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .8rem;
    padding: .5rem 1rem 1.5rem;
}
.scae-game-item {
    background: linear-gradient(145deg, rgba(30, 42, 68, 0.9), rgba(20, 30, 52, 0.9));
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(72, 209, 204, 0.1);
    transition: all .3s ease;
    cursor: pointer;
    opacity: 1;
    transition: opacity .3s, transform .25s, border-color .25s, box-shadow .25s;
}
.scae-game-item:hover {
    transform: translateY(-3px);
    border-color: rgba(72, 209, 204, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(72, 209, 204, 0.08);
}
.scae-game-img-wrap {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: rgba(15, 22, 36, 0.6);
}
.scae-game-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.scae-game-item:hover .scae-game-img-wrap img { transform: scale(1.06); }
.scae-game-name {
    padding: .55rem .65rem;
    font-size: .92rem;
    font-weight: 600;
    color: #ddeeff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ==================== Section Common ==================== */
.scae-section {
    padding: 1.8rem 1.2rem;
}
.scae-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFEB3B;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.scae-section-title i { color: #48D1CC; }

/* ==================== Feature Cards ==================== */
.scae-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.scae-feature-card {
    background: linear-gradient(145deg, rgba(30, 44, 72, 0.85), rgba(20, 30, 50, 0.85));
    border: 1px solid rgba(72, 209, 204, 0.12);
    border-radius: 14px;
    padding: 1.3rem;
    transition: all .25s;
}
.scae-feature-card:hover {
    border-color: rgba(72, 209, 204, 0.3);
    transform: translateY(-2px);
}
.scae-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: .8rem;
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.2), rgba(72, 209, 204, 0.15));
    color: #48D1CC;
}
.scae-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: .4rem;
}
.scae-feature-desc {
    font-size: .95rem;
    color: #99aabb;
    line-height: 1.5;
}

/* ==================== Content Page Styles ==================== */
.scae-page-content {
    padding: 1.5rem 1.2rem 2rem;
    max-width: 720px;
    margin: 0 auto;
}
.scae-page-content p { margin-bottom: 1rem; line-height: 1.7; }
.scae-page-content h2 {
    font-size: 1.5rem;
    color: #FFEB3B;
    margin-top: 2rem;
    margin-bottom: .8rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid rgba(72, 209, 204, 0.2);
}
.scae-page-content h3 {
    font-size: 1.2rem;
    color: #48D1CC;
    margin-top: 1.5rem;
    margin-bottom: .6rem;
}
.scae-page-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.scae-page-content li {
    list-style: disc;
    margin-bottom: .4rem;
    color: #c0d0e0;
    line-height: 1.6;
}
.scae-page-content strong { color: #FFEB3B; }
.scae-inline-link {
    color: #6495ED;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.scae-inline-link:hover { color: #48D1CC; }

/* ==================== Accordion ==================== */
.scae-accordion-item {
    border: 1px solid rgba(72, 209, 204, 0.12);
    border-radius: 10px;
    margin-bottom: .6rem;
    overflow: hidden;
    background: rgba(27, 38, 59, 0.5);
}
.scae-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: #e0e8f0;
    font-size: 1.05rem;
    transition: background .2s;
}
.scae-accordion-header:hover { background: rgba(72, 209, 204, 0.06); }
.scae-accordion-header i { color: #FFB347; transition: transform .3s; }
.scae-accordion-header.scae-accordion-open i { transform: rotate(180deg); }
.scae-accordion-body {
    display: none;
    padding: 0 1.2rem 1rem;
    color: #99aabb;
    line-height: 1.65;
    font-size: .98rem;
}

/* ==================== CTA Banner ==================== */
.scae-cta-banner {
    background: linear-gradient(135deg, rgba(100, 149, 237, 0.15), rgba(72, 209, 204, 0.1));
    border: 1px solid rgba(72, 209, 204, 0.2);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}
.scae-cta-banner h3 {
    color: #FFEB3B;
    font-size: 1.3rem;
    margin-bottom: .6rem;
}
.scae-cta-banner p { color: #b0c0d0; margin-bottom: 1rem; }
.scae-cta-btn {
    display: inline-block;
    padding: .7rem 2rem;
    background: linear-gradient(135deg, #FFEB3B, #FFB347);
    color: #1B263B;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 24px;
    cursor: pointer;
    border: none;
    transition: all .3s;
}
.scae-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 235, 59, 0.4);
}

/* ==================== Mobile Bottom Navigation ==================== */
.scae-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15, 22, 38, 0.97), rgba(11, 17, 29, 0.99));
    border-top: 1px solid rgba(72, 209, 204, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: .3rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.scae-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    border: none;
    background: none;
    color: #667788;
    transition: all .25s ease;
    position: relative;
    padding: 0;
}
.scae-nav-btn i { font-size: 21px; transition: all .25s; }
.scae-nav-btn span { font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.scae-nav-btn:hover { color: #48D1CC; }
.scae-nav-btn.scae-nav-active { color: #FFEB3B; }
.scae-nav-btn.scae-nav-active i { transform: scale(1.15); }
.scae-nav-btn.scae-nav-active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #FFEB3B, #FFB347);
    border-radius: 0 0 3px 3px;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) { .scae-bottom-nav { display: none !important; } }

/* ==================== Footer ==================== */
.scae-footer {
    background: linear-gradient(180deg, #111a2e, #0a1020);
    border-top: 1px solid rgba(72, 209, 204, 0.12);
    padding: 2.5rem 1.2rem 7rem;
    text-align: center;
}
.scae-footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(90deg, #FFEB3B, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .8rem;
}
.scae-footer-desc {
    font-size: .9rem;
    color: #667788;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.scae-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem 1.5rem;
    margin-bottom: 1.5rem;
}
.scae-footer-links a {
    font-size: .9rem;
    color: #8899aa;
    transition: color .2s;
}
.scae-footer-links a:hover { color: #48D1CC; }
.scae-footer-copy {
    font-size: .82rem;
    color: #445566;
    padding-top: 1rem;
    border-top: 1px solid rgba(72, 209, 204, 0.08);
}

/* ==================== Scroll to Top Button ==================== */
#scae-scroll-top {
    display: none;
    position: fixed;
    bottom: 76px;
    right: 16px;
    z-index: 999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48D1CC, #6495ED);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(72, 209, 204, 0.35);
    transition: all .25s;
}
#scae-scroll-top:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(72, 209, 204, 0.5); }

/* ==================== Toast Notification ==================== */
.scae-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #1B263B, #243350);
    color: #48D1CC;
    padding: .7rem 1.6rem;
    border-radius: 24px;
    font-size: .95rem;
    font-weight: 600;
    border: 1px solid rgba(72, 209, 204, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.scae-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== Utilities ==================== */
.scae-text-center { text-align: center; }
.scae-mt-1 { margin-top: 1rem; }
.scae-mt-2 { margin-top: 2rem; }
.scae-mb-1 { margin-bottom: 1rem; }
.scae-mb-2 { margin-bottom: 2rem; }
.scae-hidden { display: none !important; }

/* ==================== Animations ==================== */
@keyframes scae-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scae-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes scae-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.scae-animate-in { animation: scae-fade-in .5s ease forwards; }

/* ==================== Desktop Adjustments ==================== */
@media (min-width: 769px) {
    .scae-main { padding-top: 70px; }
    .scae-game-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: .5rem 2rem 2rem; }
    .scae-hero { padding: 3rem 2rem 4rem; }
    .scae-hero-title { font-size: 2.8rem; }
    .scae-stats-bar { max-width: 600px; margin: 0 auto; }
    .scae-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .scae-footer { padding-bottom: 2.5rem; }
    .scae-page-content { padding: 2rem 2.5rem; }
}
