/* ================================
   Alfa Prompt - Main Stylesheet
   ================================ */

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

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden !important;
}

body {
    background-color: #000000;
    color: #ffffff;
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* ================================
   Background Animation
   ================================ */
.subtle-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.tiny-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(191, 149, 63, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(191, 149, 63, 0.6);
    animation: float-up 30s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
}

.tiny-particle:nth-child(odd) {
    animation: float-up-drift-right 35s linear infinite;
}

.tiny-particle:nth-child(even) {
    animation: float-up-drift-left 32s linear infinite;
}

@keyframes float-up-drift-right {
    0% {
        transform: translateY(100vh) translateX(-20px);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

@keyframes float-up-drift-left {
    0% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) translateX(-20px);
        opacity: 0;
    }
}

/* Particle positions */
.tiny-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.tiny-particle:nth-child(2) {
    left: 20%;
    animation-delay: 3s;
}

.tiny-particle:nth-child(3) {
    left: 30%;
    animation-delay: 6s;
}

.tiny-particle:nth-child(4) {
    left: 40%;
    animation-delay: 9s;
}

.tiny-particle:nth-child(5) {
    left: 50%;
    animation-delay: 12s;
}

.tiny-particle:nth-child(6) {
    left: 60%;
    animation-delay: 15s;
}

.tiny-particle:nth-child(7) {
    left: 70%;
    animation-delay: 18s;
}

.tiny-particle:nth-child(8) {
    left: 80%;
    animation-delay: 21s;
}

.tiny-particle:nth-child(9) {
    left: 90%;
    animation-delay: 24s;
}

.tiny-particle:nth-child(10) {
    left: 15%;
    animation-delay: 27s;
}

.tiny-particle:nth-child(11) {
    left: 45%;
    animation-delay: 30s;
}

.tiny-particle:nth-child(12) {
    left: 75%;
    animation-delay: 33s;
}

/* ================================
   Brand Elements
   ================================ */
.text-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
    font-weight: 800;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.btn-gold {
    background: linear-gradient(to bottom, #bf953f 0%, #aa771c 100%);
    border: 1px solid #b38728;
    color: #000;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(to bottom, #d4af37 0%, #bf953f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 149, 63, 0.5);
}

/* ================================
   Module Cards
   ================================ */
.module-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #080808 100%);
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.module-card:hover {
    border-color: rgba(191, 149, 63, 0.4);
    box-shadow: 0 8px 32px rgba(191, 149, 63, 0.15), 0 0 0 1px rgba(191, 149, 63, 0.1);
    transform: translateY(-2px);
}

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

.module-card.active {
    border-color: rgba(191, 149, 63, 0.5);
    background: linear-gradient(135deg, #0f0f0f 0%, #0a0a0a 100%);
    box-shadow: 0 8px 32px rgba(191, 149, 63, 0.2);
}

.premium-card-active {
    border: 1px solid rgba(191, 149, 63, 0.4) !important;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

.module-card-header {
    transition: all 0.3s ease;
}

.module-card-header:hover {
    background: rgba(191, 149, 63, 0.03) !important;
}

.premium-border-left::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    background: linear-gradient(to bottom, #aa771c, #fcf6ba, #aa771c);
}

/* ================================
   Inner Boxes & Lesson Items
   ================================ */
.inner-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
    margin-bottom: 0;
}

.inner-box:hover {
    background: rgba(191, 149, 63, 0.05);
    border-color: rgba(191, 149, 63, 0.3);
    transform: translateX(-4px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 149, 63, 0.15);
}

.inner-box h5,
.inner-box .font-medium {
    font-size: 1.1rem;
}

/* ================================
   Accordion Styles
   ================================ */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.always-open .accordion-content {
    max-height: none !important;
    overflow: visible;
}

.accordion-item.active .accordion-content {
    max-height: 3500px;
    transition: max-height 0.8s ease-in-out;
}

.accordion-item.active .arrow-icon {
    transform: rotate(180deg);
    color: #bf953f;
}

/* Sub-Accordion */
.sub-accordion-item {
    border: 1px solid #222;
    border-radius: 8px;
    background: #0d0d0d;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sub-accordion-item.active {
    border-color: rgba(191, 149, 63, 0.3);
    background: #0f0f0f;
}

.sub-accordion-header {
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.sub-accordion-header:hover {
    background: #161616;
}

.sub-accordion-item.active .sub-accordion-header {
    border-bottom: 1px solid #222;
    background: #1a1a1a;
}

.sub-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #080808;
}

.sub-accordion-item.active .sub-accordion-content {
    max-height: 2000px;
}

.sub-accordion-item.active .sub-arrow {
    transform: rotate(180deg);
    color: #bf953f;
}

/* ================================
   Video Badges & Items
   ================================ */
.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.15), rgba(191, 149, 63, 0.05));
    border: 1px solid rgba(191, 149, 63, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #bf953f;
    margin-right: 8px;
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(191, 149, 63, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(191, 149, 63, 0);
    }
}

.video-item {
    position: relative;
    border-left: 3px solid #bf953f !important;
    background: linear-gradient(90deg, rgba(191, 149, 63, 0.08) 0%, rgba(191, 149, 63, 0.02) 100%) !important;
}

.video-item::before {
    content: '🎥';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    background: #020202;
    padding: 4px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.video-section-wrapper {
    position: relative;
    padding: 20px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.8);
    margin: 16px 0;
    overflow: visible;
}

.video-section-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c, #bf953f);
    background-size: 400% 400%;
    z-index: -1;
    animation: golden-border-rotate 3s linear infinite;
    opacity: 0.8;
}

.video-section-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.95);
    z-index: -1;
}

@keyframes golden-border-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.video-icon-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.video-icon-glow::before {
    content: '🎥';
    position: absolute;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(191, 149, 63, 0.5));
}

.inner-box:hover .video-icon-glow::before {
    opacity: 1;
    animation: video-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes video-glow-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(191, 149, 63, 0.8));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 12px rgba(191, 149, 63, 1));
    }
}

/* ================================
   Utility Elements
   ================================ */
.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #bf953f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(191, 149, 63, 0.2), transparent);
    margin: 24px 0;
}

.lessons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bf953f;
}

/* Search Bar */
.search-input:focus {
    box-shadow: 0 0 25px rgba(191, 149, 63, 0.15);
}

/* Container Safety */
.max-w-4xl,
.max-w-7xl,
.max-w-xl {
    width: 100%;
    box-sizing: border-box;
}

/* ================================
   Responsive Design
   ================================ */
@media (min-width: 768px) {
    .lessons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 3rem !important;
        padding-bottom: 1.5rem !important;
    }

    .hero-section {
        padding-top: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-section img {
        height: 120px !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-section>div:first-of-type {
        margin-bottom: 0.75rem !important;
    }

    .hero-section .inline-flex {
        margin-bottom: 0.75rem !important;
    }

    .hero-section h1 {
        margin-bottom: 0.75rem !important;
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    .hero-section p {
        margin-bottom: 1rem !important;
        font-size: 0.9rem !important;
    }

    #curriculum {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    #curriculum>div:first-child {
        margin-bottom: 1rem !important;
    }
}