/* ============================================================================
   MOBILE CONTENT STUDIO HUB STYLES
   Optimized for mobile screens
   Theme: Red, Black, White, Engineering Grid, Architectural
   ============================================================================ */

/* Studio Hero */
.studio-hero {
    position: relative;
    padding: 50px 0 35px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.85),
        rgba(0, 0, 0, 0.95)
    );
    border-bottom: 1px solid rgba(80, 0, 0, 0.4);
}

/* White splash separator at top */
.studio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%
    );
    box-shadow: 0 2px 15px rgba(204, 0, 0, 0.6);
    z-index: 2;
}

.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.02) 20px,
            rgba(139, 0, 0, 0.02) 21px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.02) 20px,
            rgba(139, 0, 0, 0.02) 21px
        );
    animation: heroMove 15s ease-in-out infinite alternate;
}

@keyframes heroMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-20px, 20px) scale(1.05); }
}

.hero-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #FFFFFF;
    z-index: 1;
}

.hero-title i {
    color: #CC0000;
    font-size: 1.8rem;
    filter: drop-shadow(0 3px 8px rgba(204, 0, 0, 0.5));
}

.hero-subtitle {
    position: relative;
    font-size: 14px;
    color: rgba(200, 200, 200, 0.9);
    margin-bottom: 28px;
    line-height: 1.5;
    padding: 0 20px;
    z-index: 1;
}

/* Stats Grid */
.stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 0 8px;
    max-width: 500px;
    margin: 0 auto;
    z-index: 1;
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 10px 4px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.85)
    );
    border: 1px solid rgba(80, 80, 80, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(139, 0, 0, 0.02) 10px,
            rgba(139, 0, 0, 0.02) 11px
        );
    pointer-events: none;
}

.stat-number {
    position: relative;
    display: block;
    font-size: 1rem;
    font-weight: 900;
    color: #CC0000;
    line-height: 1;
    margin-bottom: 3px;
    text-shadow: 0 0 8px rgba(204, 0, 0, 0.5);
    z-index: 1;
}

.stat-label {
    position: relative;
    display: block;
    font-size: 8.5px;
    color: rgba(180, 180, 180, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.1;
    z-index: 1;
}

/* Content Section */
.content-section {
    position: relative;
    padding: 24px 0 40px;
}

/* White splash separator at top */
.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%
    );
    box-shadow: 0 2px 15px rgba(204, 0, 0, 0.6);
    z-index: 1;
}

/* Content Card */
.content-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(20, 0, 0, 0.85),
        rgba(0, 0, 0, 0.95)
    );
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 16px;
    text-decoration: none;
    color: #FFFFFF;
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* White splash top border */
.content-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 30%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 70%, 
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* Engineering Grid Inside Cards */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.03) 20px,
            rgba(139, 0, 0, 0.03) 21px
        );
    pointer-events: none;
    z-index: 0;
}

/* Tech Corner Brackets */
.card-corner-tl {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(139, 0, 0, 0.4);
    border-left: 2px solid rgba(139, 0, 0, 0.4);
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 1;
}

.card-corner-br {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(139, 0, 0, 0.4);
    border-right: 2px solid rgba(139, 0, 0, 0.4);
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 1;
}

.content-card:active {
    transform: translateY(-2px);
    border-color: rgba(204, 0, 0, 0.6);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -2px 12px rgba(204, 0, 0, 0.2),
        0 8px 24px rgba(204, 0, 0, 0.3);
}

.content-card:active::after {
    opacity: 1;
}

.content-card:active .card-corner-tl,
.content-card:active .card-corner-br {
    width: 30px;
    height: 30px;
    opacity: 1;
    border-color: #CC0000;
}

/* Content Icon */
.content-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    border: 2px solid rgba(204, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 3px 8px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(204, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* White splash mini border on icon */
.content-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%
    );
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.content-icon::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(204, 0, 0, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.content-card:active .content-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(204, 0, 0, 0.6);
}

.content-card:active .content-icon::after {
    inset: 4px;
    border-color: rgba(204, 0, 0, 0.8);
}

/* Icon Color Variations - Enforced Theme Colors Only */
.content-icon.youtube,
.content-icon.youtube i {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.3), 
        rgba(0, 0, 0, 0.6)
    );
    color: #CC0000 !important;
}

.content-icon.books,
.content-icon.books i {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.25), 
        rgba(0, 0, 0, 0.6)
    );
    color: #CC0000 !important;
}

.content-icon.posts,
.content-icon.posts i {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.35), 
        rgba(0, 0, 0, 0.6)
    );
    color: #CC0000 !important;
}

.content-icon.papers,
.content-icon.papers i {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.28), 
        rgba(0, 0, 0, 0.6)
    );
    color: #CC0000 !important;
}

.content-icon.courses,
.content-icon.courses i {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.32), 
        rgba(0, 0, 0, 0.6)
    );
    color: #CC0000 !important;
}

/* Content Info */
.content-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.content-info h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.content-card:active .content-info h2 {
    color: #CC0000;
    text-shadow: 0 0 8px rgba(204, 0, 0, 0.4);
}

.content-info p {
    font-size: 13px;
    color: rgba(200, 200, 200, 0.9);
    line-height: 1.5;
    margin-bottom: 10px;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: rgba(170, 170, 170, 0.8);
}

.content-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-meta i {
    color: #CC0000;
    font-size: 11px;
    filter: drop-shadow(0 1px 3px rgba(204, 0, 0, 0.3));
}

/* Content Arrow */
.content-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.2), 
        rgba(0, 0, 0, 0.5)
    );
    border: 1px solid rgba(204, 0, 0, 0.5);
    border-radius: 8px;
    color: #CC0000;
    font-size: 14px;
    position: relative;
    z-index: 2;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 8px rgba(204, 0, 0, 0.2);
    transition: all 0.3s ease;
    align-self: center;
}

.content-card:active .content-arrow {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.35), 
        rgba(0, 0, 0, 0.6)
    );
    transform: translateX(4px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 15px rgba(204, 0, 0, 0.5);
}

/* Footer */
.mobile-footer {
    position: relative;
    text-align: center;
    padding: 32px 16px 36px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95), 
        rgba(15, 0, 0, 0.9)
    );
    border-top: 1px solid rgba(80, 0, 0, 0.3);
    overflow: hidden;
}

/* White splash top separator */
.mobile-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 30%, 
        rgba(255, 255, 255, 0.6) 50%, 
        rgba(255, 255, 255, 0.4) 70%, 
        transparent 100%
    );
    box-shadow: 0 2px 15px rgba(204, 0, 0, 0.6);
    z-index: 2;
}

/* Engineering grid background */
.mobile-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(139, 0, 0, 0.02) 20px,
            rgba(139, 0, 0, 0.02) 21px
        );
    pointer-events: none;
    z-index: 0;
}

.footer-text {
    position: relative;
    font-size: 14px;
    color: rgba(200, 200, 200, 0.9);
    margin-bottom: 8px;
    z-index: 1;
}

.footer-credit {
    position: relative;
    font-size: 13px;
    color: rgba(170, 170, 170, 0.8);
    margin-bottom: 4px;
    z-index: 1;
}

.footer-credit strong {
    color: #CC0000;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(204, 0, 0, 0.4);
}

.footer-tagline {
    position: relative;
    font-size: 12px;
    color: rgba(150, 150, 150, 0.7);
    font-style: italic;
    z-index: 1;
}

/* Small Screens */
@media (max-width: 359px) {
    .stats-grid {
        gap: 6px;
    }
    
    .stat-item {
        padding: 10px 4px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .content-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
}

/* Animation for cards */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: cardFadeIn 0.4s ease backwards;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
