/* 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 { 
            --ig-primary: #d62976; 
            --ig-purple: #962fbf;
            --ig-orange: #fa7e1e;
            --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); 
            --ig-gradient-text: -webkit-linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
            --bg-surface: #f8faff;
            --card-shadow: 0 10px 30px rgba(0,0,0,0.04);
            --card-hover-shadow: 0 20px 40px rgba(0,0,0,0.08);
            --border-color: #eaeaea;
        }
        
        body { 
            font-family: 'Inter', -apple-system, sans-serif; 
            background-color: #fff; 
            color: #1e293b; 
            -webkit-font-smoothing: antialiased;
            margin: 0; padding: 0;
        }
        
        /* === 1. Hero & AI Search === */
        .hero-section { 
            padding: 60px 0 50px; 
            background: radial-gradient(circle at top right, rgba(253, 29, 29, 0.03), transparent 40%),
                        radial-gradient(circle at top left, rgba(131, 58, 180, 0.03), transparent 40%);
        }
        .hero-title { letter-spacing: -0.5px; color: #0f172a; }
        .hero-subtitle { font-size: 1.1rem; line-height: 1.6; color: #64748b; }
        
        /* 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(--ig-primary); color: white;
            font-size: 0.75rem; padding: 2px 12px; border-radius: 20px; font-weight: 600; z-index: 2;
            box-shadow: 0 4px 10px rgba(214, 41, 118, 0.3);
        }

        .ai-search-box { 
            padding: 15px 15px 15px 20px;
            background: #fff; border: 2px solid #f1e0f0; border-radius: 24px;
            display: flex; flex-direction: column; box-shadow: 0 10px 30px -5px rgba(150, 47, 191, 0.15);
            transition: all 0.3s ease; position: relative;
        }
        .ai-search-box:focus-within { border-color: var(--ig-purple); box-shadow: 0 15px 40px -10px rgba(150, 47, 191, 0.25); 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 #f1f5f9; }
        .char-count { font-size: 0.75rem; color: #94a3b8; }
        .char-count.limit-reached { color: #dc3545; }
        .ai-search-badge {
            background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
            border: none; color: #fff; font-weight: 600;
            padding: 8px 24px; border-radius: 50px; transition: 0.2s;
            display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
        }
        .ai-search-badge:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .ai-search-badge:disabled { opacity: 0.6; cursor: not-allowed; background: #cbd5e1; }
        #ai-result-box { margin-top: 15px; padding: 20px; background: #fff; border-top: 1px solid #f1f5f9; 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: 20px; 
            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:hover { border-color: transparent; box-shadow: var(--card-hover-shadow); transform: translateY(-5px); }
        .tool-icon-wrapper {
            width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
            border-radius: 12px; background: #fff4f7; margin-bottom: 15px; transition: 0.3s;
        }
        .tool-item:hover .tool-icon-wrapper { background: var(--ig-gradient); }
        .tool-item:hover .tool-icon-wrapper i { background: none; -webkit-text-fill-color: #fff; color: #fff; }
        .tool-item i { 
            font-size: 1.4rem; background: var(--ig-gradient-text);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .tool-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: #334155; }
        .tool-item p { font-size: 0.8rem; color: #64748b; margin: 0; line-height: 1.4; }

        /* === 3. Checker & Top Data (FUNCTIONAL STYLE) === */
        .checker-section { background: var(--bg-surface); padding: 60px 0; border-top: 1px solid #f1f5f9; }
        .checker-box { 
            background: white; border: 0; border-radius: 24px; padding: 35px; 
            box-shadow: var(--card-shadow); height: 100%; position: relative; z-index: 1;
        }
        
        /* Mobile Friendly Input Group */
        .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(--ig-primary); box-shadow: 0 0 0 3px rgba(204, 35, 102, 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; min-width: 150px; outline: none;
        }
        .checker-input-wrapper button { flex-shrink: 0; }
        
        /* Result Styles */
        #checker-result { display: none; margin-top: 25px; animation: fadeIn 0.4s ease; }
        .profile-card { 
            background: #fff; padding: 20px; border-radius: 16px; border: 1px solid #f1f5f9;
            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(0,0,0,0.1); }
        .profile-info { width: 100%; }
        
        /* Stack vertically on mobile/default, change in larger screens if needed, 
           but instruction says "better ke bawah" so we keep grid simple */
        .stat-grid { 
            display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 15px; width: 100%; 
        }
        .stat-item { 
            display: flex; justify-content: space-between; align-items: center;
            background: #f8fafc; padding: 10px 15px; border-radius: 10px; border: 1px solid #f1f5f9;
        }
        .stat-item span { font-weight: 800; color: #334155; font-size: 0.95rem; }
        .stat-item label { font-size: 0.75rem; color: #64748b; text-transform: uppercase; font-weight: 600; margin: 0; }
        
        .compare-box { 
            margin-top: 20px; padding: 20px; border-radius: 16px; 
            background: linear-gradient(to bottom, #fff0f3, #fff); border: 1px solid #ffe4e6;
        }
        .compare-header {
            display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px;
        }
        .compare-header strong { font-size: 0.85rem; color: #64748b; }
        
        .compare-row { 
            display: flex; justify-content: space-between; padding: 10px 0; 
            border-bottom: 1px dashed #e2e8f0; font-size: 0.9rem; 
        }
        .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: 20px; box-shadow: var(--card-shadow);
            overflow: hidden; border: 1px solid var(--border-color);
        }
        .table-custom { width: 100%; border-collapse: collapse; }
        .table-custom thead { background: #f8fafc; }
        .table-custom th { 
            font-weight: 600; color: #64748b; text-transform: uppercase; 
            font-size: 0.75rem; letter-spacing: 1px; padding: 15px; border-bottom: 2px solid #f1f5f9; text-align: left;
        }
        .table-custom td { padding: 15px; vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
        .rank-badge {
            width: 30px; height: 30px; background: #f1f5f9; color: #64748b;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 0.8rem; font-weight: 700;
        }
        .table-custom tr:nth-child(1) .rank-badge { background: #ffd700; color: #fff; box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4); } 
        .table-custom tr:nth-child(2) .rank-badge { background: #c0c0c0; color: #fff; } 
        .table-custom tr:nth-child(3) .rank-badge { background: #cd7f32; color: #fff; }
        .table-footer { background: #f8fafc; padding: 10px 20px; font-size: 0.8rem; color: #94a3b8; 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(--ig-gradient); border-radius: 3px;
        }
        .pick-card { 
            border-radius: 20px; 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: transparent; }
        .pick-tag { 
            font-size: 0.7rem; font-weight: 800; text-transform: uppercase; 
            letter-spacing: 0.5px; margin-bottom: 20px; display: inline-flex; 
            align-items: center; gap: 8px; padding: 6px 12px; border-radius: 50px;
        }
        .card-problem .pick-tag { background: #fee2e2; color: #ef4444; }
        .card-tips .pick-tag { background: #dcfce7; color: #22c55e; }
        .card-insight .pick-tag { background: #e0f2fe; color: #0ea5e9; }
        .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: 2px; font-weight: 700; color: #cbd5e1; font-size: 0.9rem; transition: 0.3s;
        }
        .pick-list li:hover::before { color: var(--ig-primary); }
        .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(--ig-primary); }

        .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: 600; color: #334155; font-size: 1.05rem; padding-right: 20px; }
        .article-row:hover .title { color: var(--ig-primary); }
        .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(--ig-primary); }
        .article-row:hover i.fa-chevron-right { opacity: 1; transform: translateX(0); }

        #btn-load-more {
            transition: 0.3s; font-weight: 600; letter-spacing: 0.5px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        #btn-load-more:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

        /* === 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; } /* Hide icon on mobile for space */
            
            /* Table to Card View on Mobile */
            .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; }
            
            /* Rank formatting mobile */
            .table-custom td:nth-child(1) { width: 40px; }
            /* Name formatting mobile */
            .table-custom td:nth-child(2) { width: calc(100% - 50px); }
            /* Followers formatting mobile */
            .table-custom td:nth-child(3) { 
                width: 100%; text-align: left; padding-left: 40px; 
                color: var(--ig-primary); font-size: 0.9rem;
            }
            .table-custom td:nth-child(3)::before { content: 'Followers: '; color: #94a3b8; font-weight: 500; }
        }

/* 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 */
}    