/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../webfonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../webfonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../webfonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../webfonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../webfonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../webfonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



        :root { 
            /* YouTube "Studio Pro" Palette */
            --yt-indigo: #312e81; /* Deep Broadcast Blue */
            --yt-crimson: #e11d48; /* Modern Pink-Red */
            --yt-gold: #f59e0b;    /* Creator Gold Play Button vibes */
            
            --yt-gradient: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
            --yt-gradient-text: linear-gradient(45deg, #312e81, #e11d48);
            
            --bg-surface: #f8faff;
            --card-shadow: 0 10px 30px rgba(49, 46, 129, 0.06);
            --card-hover-shadow: 0 20px 40px rgba(49, 46, 129, 0.12);
            --border-color: #e0e7ff;
        }
        
        body { 
            font-family: 'Inter', -apple-system, sans-serif; 
            background-color: #fff; 
            color: #1e293b; 
            margin: 0; padding: 0;
        }

        h1, h2, h3, h4, h5 { font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }
        
        /* === 1. Hero & AI Search === */
        .hero-section { 
            padding: 60px 0 50px; 
            background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.04), transparent 40%),
                        radial-gradient(circle at top left, rgba(49, 46, 129, 0.04), transparent 40%);
        }
        .hero-title { text-transform: uppercase; color: #0f172a; }
        .hero-subtitle { font-size: 1.1rem; line-height: 1.6; color: #64748b; font-family: 'Inter', sans-serif; }
        
        /* AI Box Enhanced */
        .ai-search-wrapper { position: relative; max-width: 720px; margin: 40px auto 20px; }
        .ai-label-float {
            position: absolute; top: -12px; left: 25px; background: var(--yt-indigo); color: #fff;
            font-size: 0.75rem; padding: 2px 12px; border-radius: 20px; font-weight: 500; z-index: 2;
            box-shadow: 0 4px 10px rgba(49, 46, 129, 0.2); font-family: 'Inter', sans-serif;
        }

        .ai-search-box { 
            padding: 15px 15px 15px 20px;
            background: #fff; border: 2px solid #eef2ff; border-radius: 24px;
            display: flex; flex-direction: column; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.06);
            transition: all 0.3s ease; position: relative;
        }
        .ai-search-box:focus-within { border-color: var(--yt-indigo); box-shadow: 0 25px 50px -12px rgba(49, 46, 129, 0.15); transform: translateY(-2px); }
        .ai-input-area { display: flex; align-items: flex-start; width: 100%; }
        .ai-textarea {
            flex-grow: 1; border: none; resize: none; outline: none;
            font-family: 'Inter', sans-serif; font-size: 1.05rem; color: #334155;
            min-height: 28px; max-height: 200px; overflow-y: hidden;
            padding: 5px 10px; background: transparent; line-height: 1.5;
        }
        .ai-textarea::placeholder { color: #94a3b8; opacity: 0.8; font-style: italic; }

        .search-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 5px; border-top: 1px dashed #eef2ff; }
        .char-count { font-size: 0.75rem; color: #94a3b8; }
        .char-count.limit-reached { color: var(--yt-crimson); }
        .ai-search-badge {
            background: var(--yt-indigo); border: 1px solid var(--yt-indigo); color: #fff;
            font-weight: 500; font-family: 'Inter', sans-serif; padding: 8px 24px;
            border-radius: 50px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
        }
        .ai-search-badge:hover:not(:disabled) { background: #1e1b4b; transform: translateY(-1px); }
        .ai-search-badge:disabled { opacity: 0.7; cursor: not-allowed; }
        #ai-result-box { margin-top: 15px; padding: 20px; background: #fff; border-top: 1px solid #eef2ff; display: none; text-align: left; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

        /* === 2. Tools Grid === */
        .tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 60px; }
        .tool-item { 
            text-align: center; padding: 25px 15px; border-radius: 16px; 
            background: #fff; border: 1px solid var(--border-color); 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none; color: inherit; height: 100%;
            position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center;
        }
        .tool-item::after {
            content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
            background: var(--yt-gradient); opacity: 0; transition: 0.3s;
        }
        .tool-item:hover { border-color: #c7d2fe; box-shadow: var(--card-hover-shadow); transform: translateY(-5px); }
        .tool-item:hover::after { opacity: 1; }
        .tool-icon-wrapper {
            width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
            border-radius: 50%; background: #eef2ff; margin-bottom: 15px; transition: 0.3s; color: var(--yt-indigo);
        }
        .tool-item:hover .tool-icon-wrapper { background: var(--yt-indigo); color: #fff; }
        .tool-item i { font-size: 1.3rem; }
        .tool-item h4 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; color: #334155; font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }
        .tool-item p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.4; font-family: 'Inter', sans-serif; }

        /* === 3. Checker & Top Data (FUNCTIONAL) === */
        .checker-section { background: var(--bg-surface); padding: 60px 0; border-top: 1px solid #f1f5f9; }
        .checker-box { 
            background: white; border: 0; border-radius: 20px; padding: 35px; 
            box-shadow: var(--card-shadow); height: 100%; position: relative; z-index: 1; border-top: 5px solid var(--yt-gold);
        }
        
        /* Mobile Friendly Input */
        .checker-input-wrapper {
            background: #fff; border: 1px solid #cbd5e1; border-radius: 16px;
            padding: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); transition: 0.2s;
            display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
        }
        .checker-input-wrapper:focus-within { border-color: var(--yt-indigo); box-shadow: 0 0 0 3px rgba(49, 46, 129, 0.1); }
        .checker-input-wrapper .input-icon { padding: 0 15px; color: #94a3b8; }
        .checker-input-wrapper input { 
            border: none; font-size: 1rem; flex-grow: 1; padding: 10px 0; font-family: 'Inter', sans-serif; min-width: 150px; outline: none;
        }
        .checker-input-wrapper button { flex-shrink: 0; }
        
        /* Checker Result Styles */
        #yt-checker-result { display: none; margin-top: 25px; animation: fadeIn 0.4s ease; }
        .profile-card { 
            background: #fff; padding: 20px; border-radius: 16px; border: 1px solid #eef2ff;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center;
        }
        .profile-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(49, 46, 129, 0.15); }
        .profile-info { width: 100%; }
        
        .stat-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 15px; width: 100%; }
        .stat-item { 
            display: flex; justify-content: space-between; align-items: center;
            text-align: center; background: #f8fafc; padding: 10px 15px; border-radius: 10px; border: 1px solid #f1f5f9; 
        }
        .stat-item span { font-weight: 800; color: var(--yt-indigo); font-size: 0.95rem; font-family: 'Oswald', sans-serif; }
        .stat-item label { font-size: 0.75rem; color: #64748b; text-transform: uppercase; font-family: 'Inter', sans-serif; margin: 0; }
        
        .compare-box { 
            margin-top: 20px; padding: 20px; border-radius: 16px; 
            background: linear-gradient(to bottom, #fff0f0, #fff); border: 1px solid #ffe4e6;
        }
        .compare-header {
            display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px;
        }
        .compare-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #ffd1d1; font-size: 0.9rem; font-family: 'Inter', sans-serif; }
        .compare-row:last-child { border-bottom: none; }
        .compare-row b { color: #334155; }

        /* Table Styling with Mobile Card Support */
        .table-custom-wrapper {
            background: #fff; border-radius: 16px; box-shadow: var(--card-shadow);
            overflow: hidden; border: 1px solid var(--border-color);
        }
        .table-custom { width: 100%; border-collapse: collapse; }
        .table-custom thead { background: #312e81; }
        .table-custom th { 
            font-weight: 500; color: #fff; text-transform: uppercase; 
            font-size: 0.8rem; letter-spacing: 1px; padding: 18px 15px; border-bottom: none;
            font-family: 'Oswald', sans-serif; text-align: left;
        }
        .table-custom td { padding: 15px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; font-family: 'Inter', sans-serif;}
        .rank-badge {
            width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
            font-size: 0.9rem; font-weight: 700; font-family: 'Oswald', sans-serif;
        }
        .table-custom tr:nth-child(1) .rank-badge { color: var(--yt-gold); font-size: 1.2rem; } 
        .table-custom tr:nth-child(2) .rank-badge { color: #94a3b8; } 
        .table-custom tr:nth-child(3) .rank-badge { color: #b45309; }
        .table-footer { background: #fff; padding: 15px 20px; font-size: 0.8rem; color: #64748b; border-top: 1px solid #f1f5f9; text-align: center; }

        /* === 4. Picks & Articles === */
        .picks-section { padding: 60px 0; background: #fff; }
        .section-header { position: relative; display: inline-block; margin-bottom: 40px; }
        .section-header::after {
            content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
            width: 50px; height: 3px; background: var(--yt-indigo); border-radius: 3px;
        }
        .pick-card { 
            border-radius: 16px; border: 1px solid var(--border-color); padding: 25px; 
            height: 100%; transition: 0.3s; background: #fff;
        }
        .pick-card:hover { transform: translateY(-5px); box-shadow: var(--card-hover-shadow); border-color: var(--yt-indigo); }
        .pick-tag { 
            font-size: 0.7rem; font-weight: 600; text-transform: uppercase; 
            letter-spacing: 0.5px; margin-bottom: 20px; display: inline-flex; 
            align-items: center; gap: 8px; padding: 6px 12px; border-radius: 50px;
            font-family: 'Inter', sans-serif;
        }
        .card-problem .pick-tag { background: #e0e7ff; color: var(--yt-indigo); }
        .card-tips .pick-tag { background: #fffbeb; color: #b45309; }
        .card-insight .pick-tag { background: #ffe4e6; color: var(--yt-crimson); }
        .pick-list { list-style: none; padding: 0; margin: 0; counter-reset: pick-counter; }
        .pick-list li { position: relative; padding-left: 28px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #f1f5f9; }
        .pick-list li::before {
            counter-increment: pick-counter; content: counter(pick-counter);
            position: absolute; left: 0; top: 0; 
            font-weight: 600; color: #cbd5e1; font-size: 0.8rem; 
            width: 20px; height: 20px; border: 1px solid #e2e8f0; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
        }
        .pick-list li:hover::before { border-color: var(--yt-indigo); color: var(--yt-indigo); }
        .pick-list a { color: #334155; font-weight: 500; text-decoration: none; transition: 0.2s; display: block; line-height: 1.4; }
        .pick-list a:hover { color: var(--yt-indigo); }

        .article-row { 
            padding: 18px 20px; border: 1px solid transparent; border-bottom: 1px solid #f1f5f9; 
            display: flex; justify-content: space-between; align-items: center; 
            text-decoration: none; border-radius: 12px; transition: all 0.2s ease;
        }
        .article-row:hover { background: #f8fafc; border-color: #e2e8f0; }
        .article-row .title { font-weight: 500; color: #334155; font-size: 1.05rem; padding-right: 20px; font-family: 'Oswald', sans-serif; letter-spacing: 0.3px; }
        .article-row:hover .title { color: var(--yt-indigo); }
        .article-row .meta-right { min-width: 140px; text-align: right; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
        .article-row .date { font-size: 0.85rem; color: #94a3b8; font-weight: 500; white-space: nowrap; }
        .article-row i.fa-chevron-right { opacity: 0; transition: 0.2s; transform: translateX(-10px); color: var(--yt-crimson); }
        .article-row:hover i.fa-chevron-right { opacity: 1; transform: translateX(0); }

        #btn-load-more {
            transition: 0.3s; font-weight: 500; letter-spacing: 0.5px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            background: var(--yt-indigo); border: none; font-family: 'Oswald', sans-serif; text-transform: uppercase;
        }
        #btn-load-more:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(49, 46, 129, 0.2); background: #1e1b4b; }

        /* === MOBILE RESPONSIVENESS === */
        @media (max-width: 992px) { 
            .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } 
            .hero-section { padding: 40px 0; }
            .ai-search-box { border-radius: 20px; padding: 15px; }
            
            /* Checker Mobile */
            .checker-input-wrapper { flex-direction: column; align-items: stretch; }
            .checker-input-wrapper input { text-align: center; border-bottom: 1px solid #f1f5f9; margin-bottom: 5px; }
            .checker-input-wrapper button { width: 100%; border-radius: 12px !important; }
            .checker-input-wrapper .input-icon { display: none; }
            
            /* Table Mobile Card View */
            .table-custom thead { display: none; }
            .table-custom, .table-custom tbody, .table-custom tr, .table-custom td { display: block; width: 100%; }
            .table-custom tr { 
                margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px; 
                display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative;
            }
            .table-custom tr:last-child { border-bottom: none; margin-bottom: 0; }
            .table-custom td { border: none; padding: 5px 0; }
            
            /* Mobile Column Formatting */
            .table-custom td:nth-child(1) { width: 40px; } /* Rank */
            .table-custom td:nth-child(2) { width: calc(100% - 50px); } /* Info */
            .table-custom td:nth-child(3) { 
                width: 100%; text-align: left; padding-left: 40px; 
                color: var(--yt-indigo); font-size: 0.95rem; font-family: 'Inter', sans-serif; font-weight: 700 !important;
            }
            .table-custom td:nth-child(3)::before { content: 'Subscribers: '; color: #94a3b8; font-weight: 500; font-family: 'Inter', sans-serif; font-size: 0.85rem; }
        }
    

       /* Kelas baru: misal namanya .link-panah */
.link-panah {
  text-decoration: none;
  color: #008f68; /* Warna teks hijau gelap */
  font-weight: 700;
  position: relative;
  /* Garis bawah default agar orang tahu ini link */
  border-bottom: 3px solid rgba(0, 143, 104, 0.3); 
  transition: color 0.3s ease-in-out;
  display: inline-block; /* Supaya rapi dengan ikon */
}

/* 1. BAGIAN IKON (Memakai ::before) */
.link-panah::before {
  content: '→'; /* Bisa ganti dengan '👉' atau '🔗' */
  margin-right: 5px; /* Jarak antara ikon dan teks */
  display: inline-block;
  transition: transform 0.3s ease; /* Animasi gerak ikon */
}

/* 2. BAGIAN BACKGROUND HOVER (Memakai ::after) */
.link-panah::after {
  content: '';
  background-color: rgba(0, 143, 104, 0.2); /* Warna background saat hover (transparan) */
  position: absolute;
  left: 0;
  bottom: 0; /* Mulai dari paling bawah */
  width: 100%;
  height: 0%; /* Awalnya 0, tidak terlihat */
  z-index: -1; /* Di belakang teks */
  transition: all 0.3s ease-in-out;
}

/* EFEK SAAT MOUSE DI-HOVER */
.link-panah:hover {
  color: #004d38; /* Warna teks jadi lebih gelap saat hover */
}

.link-panah:hover::before {
  transform: translateX(5px); /* Ikon panah maju sedikit ke kanan */
}

.link-panah:hover::after {
  height: 100%; /* Background naik memenuhi teks */
}



