/* ============================================================
   LifeStyleMod – Tutorials List (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Container ---------- */
.tl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}

/* ---------- Page Hero ---------- */
.tl-page-hero {
    text-align: center;
    margin-bottom: 32px;
    animation: tl-fadeUp 0.6s ease forwards;
}
.tl-page-icon {
    font-size: 3.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(139,92,246,0.5));
    margin-bottom: 8px;
}
.tl-page-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    margin: 10px 0 6px;
}
.tl-gradient-text {
    background: linear-gradient(135deg, #fbbf24, #8b5cf6, #2dd4bf);
    background-size: 200% 200%;
    animation: tl-gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes tl-gradientShift {
    0% { background-position:0% 50%; }
    50% { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}
.tl-page-hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Create Button ---------- */
.tl-btn-create {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    color: #fff; padding: 12px 28px; border-radius: 40px;
    font-weight: 700; text-decoration: none; font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
    transition: all 0.3s; margin-top: 20px;
}
.tl-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139,92,246,0.5);
}

/* ---------- Grid ---------- */
.tl-tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tl-tutorial-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    border-radius: 24px; overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(245,158,11,0.2);
}
.tl-tutorial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 20px 40px rgba(139,92,246,0.15), 0 0 30px rgba(245,158,11,0.1);
}

.tl-tutorial-thumb {
    width: 100%; aspect-ratio: 16/9; background: #0f172a;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; overflow: hidden; position: relative;
}
.tl-tutorial-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s;
}
.tl-tutorial-card:hover .tl-tutorial-thumb img {
    transform: scale(1.05);
}
.tl-badge-new {
    position: absolute; top: 10px; right: 10px;
    background: #8b5cf6; color: #fff; font-size: 11px;
    padding: 4px 12px; border-radius: 20px; font-weight: 700;
    backdrop-filter: blur(10px);
}

.tl-tutorial-body {
    padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.tl-tutorial-title {
    font-size: 1rem; font-weight: 700; line-height: 1.4; color: #f1f5f9;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-tutorial-meta {
    display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted);
}
.tl-tutorial-excerpt {
    color: var(--text-muted); font-size: 0.85rem; margin-top: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Empty state */
.tl-empty-state {
    grid-column: 1/-1; text-align: center; padding: 60px 20px;
    background: rgba(15,23,42,0.5); backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 24px;
    color: var(--text-muted);
}

/* Footer */
.tl-footer {
    text-align: center; padding: 30px 20px; color: var(--text-muted);
    font-size: 12px; border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(2,6,23,0.5); backdrop-filter: blur(10px);
    margin-top: 60px; position: relative; z-index: 1;
}

/* ---------- Animations ---------- */
@keyframes tl-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .tl-tutorials-grid { grid-template-columns: 1fr; }
}