/* =========================================================
    1️⃣ Import & Variabel Global
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #f4c542; /* warna emas dari logo */
    --secondary-color: #0e0e0e;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
}

/* =========================================================
    2️⃣ Reset & Global Style
========================================================= */
body {
    font-family: 'Poppins', sans-serif;
    /* background-color: var(--bg-dark); */
    color: var(--text-light);
    margin: 0;
    overflow-x: hidden;
}

.container {
  width: 90% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}



/* =========================================================
    3️⃣ Navbar & Logo
========================================================= */
#topnavigation {
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    padding: 8px 30px;
    background: #f5d367;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#topnavigation .logo img {
    height: 48px;
}

/* .logo-img {
    display: none;
    transition: opacity 0.4s ease;
} */
/* .logo-img.show {
    display: inline !important;
    opacity: 1;
} */

/* Logo Wrapper */
.logo.inline-flex {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    height: 100%;
}

.logo-name {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.logo-name img {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: auto;
    height: 60px;
    /* width: auto; */
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.logo-light {
    opacity: 1;
}

/* .logo-dark {
    opacity: 0.9;
} */

/* .logo-light.show, .logo-dark.show {
    opacity: 1;
} */

/* Toggle mode */
[data-bs-theme="light"] .logo-light,
#topnavigation.sticky .logo-light {
    opacity: 0;
}

/* [data-bs-theme="dark"] .logo-dark,
#topnavigation.sticky .logo-dark {
    opacity: 1;
} */

/* Navbar Sticky Effect Saat Scroll */
#topnavigation.sticky-active {
    background: #0a0a0a3d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 10px 40px;
}

/* Saat navbar sticky, ubah warna text menu */
/* #topnavigation.sticky .navigation-menu li a {
    color: #000;
} */

#topnavigation .sub-menu-item:hover,
#topnavigation .sub-menu-item.active {
    color: var(--text-light);
    padding-top: 20px;
}

/* =========================================================
    4️⃣ Navigation Menu
========================================================= */
.navigation-menu {
    display: flex !important;
    align-items: center !important;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-menu li a {
    color: #0a0a0a;
    font-weight: 550;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navigation-menu li a:hover,
.navigation-menu li a.active,
.navigation-menu li a:focus {
    color: var(--text-light);
    transform: scale(1.05);
    padding-top: 50px;
}

/* Garis bawah animasi */
.navigation-menu li a::after {
    content: "";
    position: absolute;
    margin-top: 20px !important;
    width: 0;
    height: 4px;
    left: 0;
    bottom: -10px;
    background-color: var(--text-light);
    transition: width 0.3s ease;
}

.navigation-menu li a:hover::after {
    width: 100%;
}

/* =========================================================
    5️⃣ Hero Section
========================================================= */
.bg-home {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 100px;
    background-color: #000;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(0,0,0,0.95) 15%, rgba(0,0,0,0.75) 55%, rgba(0,0,0,0.9) 100%);
}

.bg-home::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 80%, rgba(244,197,66,0.25), transparent 70%);
    pointer-events: none;
}

.bg-home h1 {
    font-size: 3.5rem;
    font-weight: 700;
    /* line-height: 1.2; */
    color: #fff;
    margin-bottom: 15px;
}

.bg-home p {
    font-size: 1.15rem;
    color: #ddd;
    margin-bottom: 25px;
    max-width: 520px;
}

/* =========================================================
    6️⃣ Button
========================================================= */
.btn-primary {
    background-color: #f4c542;
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    /* text-decoration: none; */
    box-shadow: 0 0 25px rgba(244,197,66,0.5);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #d9ac2b;
    box-shadow: 0 0 35px rgba(244,197,66,0.8);
    transform: translateY(-3px);
}

.btn-light {
    background-color: #f8f9fa;
    color: #212529;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #dee2e6;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #e2e6ea;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}


/* =========================================================
    7️⃣ Table Section
========================================================= */

/* 🎯 CARD TABLE STYLE (Dark Futuristic Theme) */
.table-card {
    border: 1px solid rgba(244, 197, 66, 0.2);
    background: #fff;
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 6x 20px rgba(244, 197, 66, 0.01);
    transition: all 0.3s ease;
}
.table-card:hover {
    box-shadow: 0 8px 24px rgba(244, 197, 66, 0.15);
    transform: translateY(-2px);
}
/* ==========================================
   🧾 TABLE HEADER
========================================== */
.coin-table thead th {
    text-transform: uppercase;
    font-size: 13px;
    color: #c49d1a;
    border-bottom: 2px solid rgba(244, 197, 66, 0.4);
    text-align: center;
    padding: 1rem 0.75rem;
    letter-spacing: 0.6px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
}
/* ==========================================
   📊 TABLE BODY
========================================== */
.coin-table tbody td {
    text-align: center;
    color: #222;
    font-weight: 600;
    font-size: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.85rem;
    transition: 0.2 ease;
}

.coin-table tbody tr:hover {
    background: rgba(244, 197, 66, 0.06);
}

/* .coin-table tbody tr:last-child td {
    border-bottom: none;
} */

/* ==========================================
   💰 COIN NAME STYLE
========================================== */
.coin-name {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    /* line-height: 1.2; */
    min-height: 52px;
    text-align: left !important;
}
.coin-name img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 5px;
    object-fit: contain;
}

/* .coin-name .coin-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.2;
} */

.coin-name .coin-text strong {
    font-weight: 700;
    font-size: 15.5px;
    /* line-height: 1.3; */
    color: #111;
}

.coin-name small {
    color: #777;
    font-size: 12px;
    /* line-height: 1.1; */
    /* display: block; */
}

/* ==========================================
   🔢 ANGKA NILAI (SKOR)
========================================== */
.coin-table tbody td:not(:first-child):not(.coin-name):not(:last-child) {
  font-size: 16px; /* Perbesar angka */
  font-weight: 700;
  color: #1a1a1a;
}
.coin-table tbody td[data-label="Total Score"] {
  font-size: 18px;
  font-weight: 800;
}


/* ==========================================
   🟢 BADGE STYLE
========================================== */
.badge {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    min-width: 64px;
    text-align: center;
    border-radius: 30px;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.badge.bg-success {
    background: linear-gradient(135deg, #00c853, #4caf50);
    box-shadow: 0 0 15px rgba(0, 200, 83, 0.5);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffb300, #ff9800);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.5);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f44336, #e53935);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

/* ==========================================
   🔘 PAGINATION STYLE
========================================== */
.table-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    /* background-color: #fff !important;
    border-top: 1px solid #f1f1f1 !important;
    border-radius: 0 0 1rem 1rem !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important; */
}

.pagination {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 4px !important;
}

#pagination-links {
    flex-shrink: 0 !important;
}

#pagination-info {
    flex: 1 1 auto !important;
    white-space: nowrap !important;
}

.pagination .page-item {
    margin: 0 3px !important;
}

.pagination .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid var(--primary-color) !important;
    color: #495057 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
    padding: 6px 10px !important;
    background-color: #fff !important;
    min-width: 55px !important;
    text-align: center !important;
}

.pagination .page-item .page-link:hover {
    background-color: var(--primary-color) !important;
    color: #000 !important;
}

/* Tombol aktif */
.pagination .page-item.active .page-link {
    background-color: #ff9f43 !important; /* oranye */
    border-color: #ff9f43 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(255, 159, 67, 0.4) !important;
}

/* Tombol disable */
.pagination .page-item.disabled .page-link {
    color: #adb5bd !important;
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    pointer-events: none !important;
}

/* ==========================================
   ⚙️ BUTTON DETAIL
========================================== */
.btn-outline-primary {
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 10px;
  border-color: rgba(244, 197, 66, 0.6);
  color: #c49d1a;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover {
  background-color: #c49d1a;
  color: #fff;
  border-color: #c49d1a;
}

/* =========================================================
    8️⃣ Footer
========================================================= */
.footer {
    background: #f5d367;
    /* padding: 50px 0 20px; */
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(244, 197, 66, 0.15);
}
.footer h5 {
    color: #f5d367;
    margin-bottom: 15px;
}
.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color);
}
.footer-bar {
    background: #f5d367;
    color: #999;
    padding: 15px 0;
    font-size: 14px;
}

/* =========================================================
    9️⃣ Responsiveness
========================================================= */
/* Responsif tablet */
@media (max-width: 992px) {
    .logo-name img {
        height: 50px;
    }
}

/* Responsif mobile */
@media (max-width: 768px) {
    #topnavigation { padding: 12px 20px; }
    .bg-home { padding: 0 30px; }
    .bg-home h1 { font-size: 2.2rem; }
    .bg-home p { font-size: 1rem; }

    /* Sembunyikan header tabel */
    table thead {
        display: none;
    }

    /* Setiap baris jadi card */
    table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #eee;
        margin-bottom: 12px;
        border-radius: 12px;
        padding: 12px 16px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        background: #fff;
    }

    /* Setiap kolom jadi baris vertikal */
    table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 0;
        border: none !important;
        font-size: 14px;
        position: relative;
    }

    /* Label dari thead muncul sebagai teks di depan */
    table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 13px;
        flex: 1;
        text-align: left;
        text-transform: capitalize;
    }

    /* Kolom No (dipisah dari nama coin) */
    table tbody td:first-child {
        font-weight: 600;
        color: #999;
        justify-content: flex-start;
        margin-bottom: 6px;
    }

    /* Kolom kedua (Coin Name) */
    table tbody td:nth-child(2) {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .coin-name {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
    }

    .coin-name img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    /* Spacer antar kolom */
    table tbody td + td {
        border-top: 1px dashed #eee;
        padding-top: 8px;
        margin-top: 4px;
    }

    /* Total Score */
    table tbody td:last-child {
        justify-content: center;
        font-weight: bold;
        font-size: 16px;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    table tbody td:last-child::before {
        content: "Total Score";
        font-size: 13px;
        color: #666;
        margin-right: 6px;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .table-footer {
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
    }
    #filterCategory, #sortBy {
      width: 100%;
  }
}

/* =========================================================
    9️⃣ Card
========================================================= */
.crypto-carousel {
    padding: 40px 0;
    background: linear-gradient(145deg, #f8fafc, #eef1f6);
}

.crypto-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 20px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.crypto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.crypto-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    opacity: 0.08;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: grayscale(1);
}

.crypto-content {
    position: relative;
    z-index: 1;
}

.crypto-card h6 a {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.crypto-card h6 a:hover {
    color: #0ea5e9; /* warna biru futuristik */
}

.badge.bg-soft-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.badge.bg-soft-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.border-top {
    border-color: var(--primary-color) !important;
}

.text-xs {
    font-size: 0.8rem;
}
.text-sm {
    font-size: 0.9rem;
}

.crypto-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.crypto-card:hover::before {
    transform: translateX(100%);
}

/* =========================================================
    🔟 Section
========================================================= */
.yellow{
    background-color: #f5d367;
    color: #2b2b2b;
}

.yellow .title {
  color: #222;
}
.yellow .subtitle {
  color: #4b4b4b;
  max-width: 650px;
  margin: 0 auto;
  font-size: 15px;
}

.white .title {
  color: #222;
}
.white .subtitle {
  color: #4b4b4b;
  max-width: 650px;
  margin: 0 auto;
  font-size: 15px;
}

/* Blog Card */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Remove underline or color change on hover */
.blog-card-link:hover {
  text-decoration: none;
}

/* Optional: add a slight lift effect on hover for clarity */
.blog-card-link:hover .blog-card {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image */
.blog-img {
  position: relative;
  aspect-ratio: 16 / 9;
  /* height: 220px; */
  overflow: hidden;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

/* Badge */
.blog-img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff7a00;
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Content */
.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.meta {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 10px;
  list-style: none;
  font-size: 13px;
  color: #777;
}
.meta i {
  margin-right: 4px;
}

.blog-title {
  color: #1a1a1a;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-title:hover {
  color: #ff7a00;
}
.blog-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}
