/* ==========================================================================
   LEARN PAGE STYLES
   ========================================================================== */

body {
    background-color: #030712;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* HERO SECTION */
.learn-hero {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #030712 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    overflow: hidden;
}

.learn-hero::before {
    content: '';
    position: absolute;
    width: 200vw; height: 200vw;
    top: -50vw; left: -50vw;
    background: repeating-linear-gradient(transparent, transparent 50px, rgba(56, 189, 248, 0.05) 50px, rgba(56, 189, 248, 0.05) 51px);
    animation: panbg 30s linear infinite;
    z-index: 0;
}

.learn-title {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    animation: fadeInDown 1s ease-out;
}

.learn-title span.cyan-text {
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.learn-subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

/* CATEGORY TABS */
.learn-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background: #030712;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.category-tab {
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-tab:hover, .category-tab.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* CONTENT SECTIONS */
.learn-section {
    padding: 60px 10%;
    display: none;
    animation: slideUpFade 0.6s ease-out forwards;
}

.learn-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.section-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* GRID LAYOUTS */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* CARD DESIGNS */
.course-card, .note-card, .tool-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover, .note-card:hover, .tool-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
}

/* Thumbnail placeholder */
.card-thumb {
    width: 100%;
    height: 180px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #38bdf8;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 15px;
}

.card-body h3 {
    margin: 0 0 15px 0;
    color: #f8fafc;
    font-size: 1.3rem;
}

.card-body p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.card-btn {
    display: inline-block;
    text-align: center;
    padding: 10px 0;
    background: transparent;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.card-btn:hover {
    background: #38bdf8;
    color: #030712;
}

/* ANIMATIONS */
@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes panbg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .learn-categories {
        flex-wrap: wrap;
    }
}