/* === TISTOOF SKETCHY PAPER THEME CSS === */
:root {
    --ink-color: #121212;
    --accent-yellow: #fde047;
    --accent-orange: #ff8c42;
    --accent-teal: #2dd4bf;
    --accent-pink: #f472b6;
    --card-bg: #ffffff;
    --sketch-border: 3.5px solid #121212;
    --sketch-shadow: 4px 5px 0px #121212;
    --wobbly-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    --wobbly-radius-alt: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    color: var(--ink-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    padding: 20px;
    
    /* Background nền xanh gradient chill + Giấy nhám li ti */
    background-color: #f7f6f2; /* Fallback */
    background-image: 
        radial-gradient(#121212 0.75px, transparent 0.75px), 
        radial-gradient(#121212 0.75px, transparent 0.75px),
        linear-gradient(135deg, #e0f2fe 0%, #edf2f7 50%, #f7f6f2 100%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    background-position: 0 0, 15px 15px, 0 0;
    background-attachment: scroll;
    opacity: 0.98;
    position: relative;
}

/* Fixed background pattern using pseudo-element for better mobile support */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#121212 0.75px, transparent 0.75px), 
        radial-gradient(#121212 0.75px, transparent 0.75px),
        linear-gradient(135deg, #e0f2fe 0%, #edf2f7 50%, #f7f6f2 100%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    background-position: 0 0, 15px 15px, 0 0;
    z-index: -1;
    pointer-events: none;
}

.font-hand {
    font-family: 'Patrick Hand', 'Pangolin', cursive;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* BANNER TOP */
.top-tag {
    display: inline-block;
    background: var(--accent-yellow);
    padding: 6px 20px;
    border: var(--sketch-border);
    border-radius: var(--wobbly-radius);
    font-weight: 700;
    transform: rotate(-1.5deg);
    font-size: 1.3rem;
    box-shadow: 3px 3px 0px #121212;
    margin-bottom: 20px;
}

/* HERO SECTION */
.hero {
    background: var(--card-bg);
    border: var(--sketch-border);
    border-radius: var(--wobbly-radius);
    padding: 30px;
    box-shadow: var(--sketch-shadow);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    margin-bottom: 40px;
}

@media(min-width: 768px) {
    .hero {
        grid-template-columns: 220px 1fr;
        align-items: center;
    }
}

/* LINH VẬT AVATAR ANIMATED */
.avatar-box {
    position: relative;
    text-align: center;
}

.avatar-circle {
    width: 170px;
    height: 170px;
    background: #fff;
    border: var(--sketch-border);
    border-radius: 50% 45% 55% 40% / 40% 55% 45% 60%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
    box-shadow: 3px 3px 0px #121212;
}

.avatar-circle:hover {
    transform: scale(1.05) rotate(3deg);
    background: #feef8a;
}

/* GIF Mascot */
.mascot-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: floatPop 2.5s infinite ease-in-out;
}

@keyframes floatPop {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-title span {
    background: var(--accent-orange);
    color: #fff;
    padding: 0 10px;
    border-radius: 8px;
    border: 2.5px solid #121212;
    display: inline-block;
    transform: rotate(1deg);
}

.bio-text {
    font-size: 1.1rem;
    margin: 12px 0;
    color: #222;
}

.badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.badge {
    background: #f1f5f9;
    border: 2px solid #121212;
    padding: 4px 12px;
    border-radius: var(--wobbly-radius-alt);
    font-size: 0.95rem;
    font-weight: 700;
}

/* NAVIGATION BUTTONS */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink-color);
    background: var(--accent-teal);
    border: var(--sketch-border);
    padding: 10px 18px;
    border-radius: var(--wobbly-radius);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 3px 3px 0px #121212;
    transition: all 0.2s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-yellow);
    box-shadow: 4px 4px 0px #121212;
}

.nav-btn svg {
    width: 20px;
    height: 20px;
}

/* SECTION TITLES */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 40px 0 20px 0;
}

.section-header h2 {
    font-size: 2.4rem;
    transform: rotate(-1deg);
}

.line {
    flex-grow: 1;
    height: 3px;
    background: #121212;
    border-radius: 10px;
}

/* YOUTUBE SHOWCASE TABS */
.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: #fff;
    border: var(--sketch-border);
    padding: 8px 20px;
    border-radius: var(--wobbly-radius);
    font-weight: 700;
    cursor: pointer;
    font-size: 1.2rem;
}

.tab-btn.active {
    background: var(--ink-color);
    color: #fff;
    box-shadow: 3px 3px 0px var(--accent-orange);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media(min-width: 600px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-card {
    background: var(--card-bg);
    border: var(--sketch-border);
    border-radius: var(--wobbly-radius-alt);
    padding: 16px;
    box-shadow: var(--sketch-shadow);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
    border: 2px solid #121212;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.video-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 10px;
    border: 1.5px solid #121212;
    border-radius: 6px;
    background: var(--accent-yellow);
    margin-bottom: 8px;
    align-self: flex-start;
}

.video-title {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.video-desc {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 15px;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink-color);
    background: var(--accent-pink);
    border: 2px solid #121212;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 2px 2px 0px #121212;
}

.watch-btn:hover {
    background: #f43f5e;
    color: #fff;
}

/* PAGINATION */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: var(--sketch-border);
    padding: 8px 16px;
    border-radius: var(--wobbly-radius);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 2px 2px 0px #121212;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--accent-yellow);
    box-shadow: 3px 3px 0px #121212;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-btn svg {
    width: 18px;
    height: 18px;
}

.page-info {
    font-weight: 700;
    font-size: 1rem;
    color: #121212;
    padding: 8px 12px;
}

/* CONTACT SECTION */
.contact-section {
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    border: var(--sketch-border);
    border-radius: var(--wobbly-radius);
    padding: 30px;
    box-shadow: var(--sketch-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 2px dashed #e0e0e0;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-teal);
    border: 3px solid #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 3px 3px 0px #121212;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #121212;
}

.contact-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #e67e22;
    text-decoration: underline;
}

.email-reveal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-btn {
    background: var(--accent-yellow);
    border: 2px solid #121212;
    padding: 8px 16px;
    border-radius: var(--wobbly-radius-alt);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 2px 2px 0px #121212;
    transition: all 0.2s;
    font-size: 0.95rem;
    max-width: fit-content;
}

.email-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-teal);
    box-shadow: 3px 3px 0px #121212;
}

.email-hidden {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-orange);
    display: none;
}

.email-hidden.revealed {
    display: block;
}

/* HALL OF FAME / TOP VIEWERS */
.roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.roster-card {
    background: #fff;
    border: 2.5px dashed #121212;
    border-radius: var(--wobbly-radius);
    padding: 15px;
    text-align: center;
    position: relative;
}

.roster-card::before {
    content: "★";
    position: absolute;
    top: -12px;
    right: 15px;
    background: var(--accent-yellow);
    border: 1.5px solid #121212;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.roster-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.roster-role {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.member-btn {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: var(--ink-color);
    background: var(--accent-teal);
    border: 2px solid #121212;
    padding: 6px 14px;
    border-radius: var(--wobbly-radius-alt);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0px #121212;
    transition: all 0.2s;
}

.member-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-yellow);
}

/* CONTENT TYPES SECTION */
.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.content-type-card {
    background: #fff;
    border: 3px solid #121212;
    border-radius: var(--wobbly-radius);
    padding: 20px;
    box-shadow: var(--sketch-shadow);
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.content-type-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

.content-type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 2px solid #121212;
    box-shadow: 2px 2px 0px #121212;
}

.content-type-icon svg {
    width: 28px;
    height: 28px;
}

.content-type-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #121212;
}

.content-type-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* POPUP TOAST */
.toast-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-yellow);
    border: var(--sketch-border);
    padding: 12px 20px;
    border-radius: var(--wobbly-radius);
    box-shadow: var(--sketch-shadow);
    font-weight: 700;
    font-size: 1.2rem;
    display: none;
    z-index: 100;
    max-width: 320px;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
    from { transform: scale(0) rotate(-10deg); }
    to { transform: scale(1) rotate(0deg); }
}

/* FOOTER */
footer {
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    border-top: 3px dashed #121212;
}

.footer-link {
    color: var(--ink-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #14a1cc;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.social-btn {
    text-decoration: none;
    color: var(--ink-color);
    background: #fff;
    border: 2px solid #121212;
    padding: 6px 18px;
    border-radius: var(--wobbly-radius);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 2px 2px 0px #121212;
}

.social-btn:hover {
    background: var(--accent-yellow);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    body {
        padding: 10px;
        background-attachment: scroll; /* Fix for mobile background pattern */
    }
    
    .container {
        padding: 0;
    }
    
    .hero {
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .bio-text {
        font-size: 0.95rem;
    }
    
    .badges {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .badge {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
    
    .nav-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .tab-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 8px 14px;
        justify-content: center;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .video-card {
        padding: 12px;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-desc {
        font-size: 0.85rem;
    }
    
    .content-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .content-type-card {
        padding: 16px;
        text-align: center;
    }
    
    .content-type-icon {
        margin: 0 auto 12px auto;
    }
    
    .content-type-name {
        font-size: 1.1rem;
    }
    
    .content-type-desc {
        font-size: 0.9rem;
    }
    
    .roster-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .roster-card {
        padding: 14px;
    }
    
    .roster-name {
        font-size: 1.1rem;
    }
    
    .roster-role {
        font-size: 0.8rem;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-item {
        padding: 15px 0;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon svg {
        width: 25px;
        height: 25px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-btn {
        width: 100%;
        justify-content: center;
    }
    
    .top-tag {
        font-size: 1.1rem;
        padding: 5px 15px;
    }
    
    .avatar-box svg {
        max-width: 150px;
        height: auto;
    }
    
    html {
        scroll-padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .bio-text {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .tab-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .contact-card {
        padding: 16px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
