/* ============================================
   FreeHole — Custom Styles
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
    background: #0f0f1a !important;
    color: #fff !important;
}

[data-bs-theme="light"] body {
    background: #f8f9fa !important;
    color: #212529 !important;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6c5ce7, #a855f7);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c6cf7, #b865ff);
}

/* === Particles Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

html {
    background: #0f0f1a !important;
}

/* === Site Wrapper === */
.site-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
}

/* === Brand === */
.brand-gradient {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-gradient-text {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Navigation === */
.nav-mastend .nav-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}
.nav-mastend .nav-link:hover,
.nav-mastend .nav-link.active {
    color: #fff;
}

/* === Hero Section === */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: #a78bfa;
    margin: 0 auto;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff !important;
}

.hero-subtitle {
    margin-bottom: 0 !important;
}

/* === Gradient Button === */
.btn-gradient {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    border: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.btn-gradient:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}
.btn-gradient:active {
    transform: translateY(0);
}

/* === Scroll Indicator === */
.scroll-indicator {
    margin-top: auto;
    padding-top: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 13px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* === Stats Section === */
.stats-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 1rem !important;
}

.stat-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(108, 92, 231, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1.5rem 1rem !important;
}
.stat-card:hover {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(168, 85, 247, 0.1));
    border-color: rgba(108, 92, 231, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #ffffff !important;
    font-weight: 500;
    opacity: 0.8;
}

/* === Section Header === */
.section-header h2 {
    color: #fff !important;
}

.section-header {
    text-align: left;
    max-width: 480px;
}

/* === Article Cards === */
.article-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.4) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(108, 92, 231, 0.1);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image {
    height: 180px;
    width: 100%;
}

.img-gradient-1 { background: linear-gradient(135deg, #6c5ce7, #0984e3); }
.img-gradient-2 { background: linear-gradient(135deg, #fd79a8, #e84393); }
.img-gradient-3 { background: linear-gradient(135deg, #00b894, #00cec9); }
.img-gradient-4 { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.img-gradient-5 { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }
.img-gradient-6 { background: linear-gradient(135deg, #55a3f8, #6c5ce7); }

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-gradient-1 { background: linear-gradient(135deg, #6c5ce7, #a855f7); }
.avatar-gradient-2 { background: linear-gradient(135deg, #fd79a8, #e84393); }
.avatar-gradient-3 { background: linear-gradient(135deg, #00b894, #00cec9); }

/* === About Section === */
.about-container {
    max-width: 680px;
    margin: 0 auto;
}

.about-feature .fw-semibold {
    color: #fff !important;
}

.about-feature {
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s ease;
}
.about-feature:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* === Beta Badge === */
.beta-badge {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid rgba(108, 92, 231, 0.4);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a78bfa;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.beta-badge:hover {
    background: rgba(108, 92, 231, 0.25);
    border-color: rgba(108, 92, 231, 0.6);
    transform: scale(1.05);
}

.beta-dot {
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* === Footer === */
footer {
    margin-top: auto;
}

footer p {
    color: rgba(255, 255, 255, 0.6) !important;
}

.tiny {
    font-size: 0.7rem;
}

/* === Reveal Animations === */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* === Responsive === */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding-top: 2rem;
    }

    .nav-mastend .nav-link {
        padding: 0.5rem 0.3rem !important;
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .card-image {
        height: 150px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        margin: 0 !important;
    }
}

/* === Light theme overrides === */
[data-bs-theme="light"] body {
    background: #f8f9fa;
}
[data-bs-theme="light"] .stat-card,
[data-bs-theme="light"] .article-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
[data-bs-theme="light"] .article-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
[data-bs-theme="light"] .about-feature:hover {
    background: rgba(0, 0, 0, 0.03);
}
