/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Variables - Vibrant Theme */
:root {
    --primary: #4361ee;
    --secondary: #f72585;
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #ef4444;
    --purple: #7209b7;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { overflow-x: hidden; }
a { text-decoration: none; }

/* Mesh Gradient Background */
.mesh-bg {
    position: relative;
    background-color: #f8fafc;
    min-height: 100vh;
    color: var(--text-main);
    z-index: 0;
}

.mesh-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.mesh-1 { width: 50vw; height: 50vw; background: #ff9a9e; top: -10%; left: -10%; }
.mesh-2 { width: 45vw; height: 45vw; background: #fecfef; bottom: 0%; right: -10%; animation-delay: -5s; }
.mesh-3 { width: 35vw; height: 35vw; background: #a1c4fd; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-50px, 50px) scale(0.9); }
}

.container { width: 100%; max-width: 850px; margin: 0 auto; padding: 0 1rem; }

/* Text Utilities */
.text-gradient {
    background: linear-gradient(90deg, #4361ee, #f72585, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.text-gradient-green {
    background: linear-gradient(90deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

@keyframes shine { to { background-position: 200% center; } }

.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-purple { color: var(--purple); }

/* Header */
.header-minimal { padding: 4rem 0 2rem; text-align: center; }
.title-badge {
    display: inline-block; padding: 0.4rem 1.2rem;
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: white; border-radius: 30px; font-weight: 800; font-size: 0.85rem;
    margin-bottom: 1.5rem; letter-spacing: 1px;
}
.pulse-glow { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 8, 68, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 8, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 8, 68, 0); }
}

.header-minimal h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 1.5rem; }
.header-minimal p { font-size: 1.15rem; color: #475569; max-width: 600px; margin: 0 auto 2rem; }

/* Stats Row */
.stats-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.glass-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1.2rem; border-radius: 30px;
    font-weight: 700; display: flex; align-items: center; gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Ranking Cards - Glassmorphism */
.ranking-section { padding: 1rem 0 4rem; }
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: rgba(255,255,255,1);
}

.top-1 {
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    border: 2px solid #fbbf24;
    padding: 2.5rem 1.5rem 1.5rem;
}

/* Badges */
.rank-badge {
    position: absolute; top: -15px; left: 20px;
    padding: 0.3rem 1.2rem; border-radius: 30px;
    font-weight: 900; font-size: 0.9rem; color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 10;
}
.gradient-gold { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #000; }
.gradient-silver { background: linear-gradient(135deg, #e2e2e2 0%, #9f9f9f 100%); color: #000; }
.gradient-bronze { background: linear-gradient(135deg, #d4a373 0%, #bc6c25 100%); }
.gradient-dark { background: linear-gradient(135deg, #434343 0%, #000000 100%); }

/* Ribbon */
.ribbon-wrap {
    width: 150px; height: 150px; overflow: hidden; position: absolute;
    top: -10px; right: -10px; z-index: 10;
}
.ribbon {
    background: linear-gradient(90deg, #f72585, #7209b7); color: #fff; text-align: center;
    padding: 5px 0; font-size: 0.75rem; font-weight: 800; transform: rotate(45deg);
    position: relative; top: 30px; right: -30px; width: 150px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Card Content Grid */
.card-inner {
    display: grid; grid-template-columns: 20% 50% 30%; gap: 1.5rem; align-items: center;
}

/* Brand */
.brand-col { text-align: center; }
.logo-box {
    width: 80px; height: 80px; border-radius: 18px; margin: 0 auto 0.5rem;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.logo-box img {
    width: 100%;
    padding: 5px
}

.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.brand-col h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.stars { color: var(--warning); font-size: 0.8rem; margin-bottom: 0.5rem; }
.view-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; display: block;}

/* Details */
.details-col { display: flex; flex-direction: column; gap: 1rem; }
.detail-row { display: flex; align-items: center; gap: 1rem; }
.icon-wrap {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.bg-blue-light { background: rgba(67, 97, 238, 0.1); }
.bg-gold-light { background: rgba(251, 191, 36, 0.15); }
.bg-purple-light { background: rgba(114, 9, 183, 0.1); }
.bg-green-light { background: rgba(16, 185, 129, 0.1); }
.bg-orange-light { background: rgba(245, 158, 11, 0.1); }
.bg-red-light { background: rgba(239, 68, 68, 0.1); }

.detail-row div { display: flex; flex-direction: column; max-width: calc(100% - 52px);}
.detail-row small { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.detail-row strong { font-size: 1rem; color: var(--text-main); font-weight: 700; }
.text-xl { font-size: 1.2rem !important; font-weight: 800 !important; color: var(--primary) !important;}

/* Actions */
.action-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }

/* Circular Chart SVG for Top 1 */
.circular-chart { display: block; margin: 0 auto; width: 60px; height: 60px; position: relative; }
.circle-bg { fill: none; stroke: #e2e8f0; stroke-width: 3; }
.circle { fill: none; stroke-width: 3; stroke-linecap: round; stroke: var(--success); animation: progress 1s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.percentage { fill: var(--text-main); font-family: 'Outfit'; font-size: 0.6em; text-anchor: middle; font-weight: 900; }
.chart-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }

.approval-text { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; }
.approval-text strong { font-size: 1.3rem; }

.note-mobile { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 600; color: #7c3aed; background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2); border-radius: 20px; padding: 0.25rem 0.7rem; margin-top: 0.25rem; }

/* Buttons */
.btn {
    width: 100%; padding: 0.9rem 1rem; border-radius: 12px;
    font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; cursor: pointer; text-transform: uppercase; position: relative; overflow: hidden;
    border: none;
}
.btn-gradient-primary {
    background: linear-gradient(135deg, #f72585 0%, #7209b7 100%); color: white !important;
}
.btn-gradient-secondary {
    background: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%); color: white !important;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}
.btn-outline-glass {
    background: rgba(255,255,255,0.5); border: 2px solid var(--primary); color: var(--primary) !important;
}

.pulse-shadow { animation: pulseShadow 2s infinite; }
@keyframes pulseShadow {
    0% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(247, 37, 133, 0); }
    100% { box-shadow: 0 0 0 0 rgba(247, 37, 133, 0); }
}

.btn-shimmer::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); animation: shimmer 3s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

/* Footer */
footer { text-align: center; padding: 2rem 0; color: var(--text-muted); font-size: 0.85rem; position: relative; z-index: 2; }
.copyright { margin-top: 0.5rem; font-weight: 600; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .header-minimal h1 { font-size: 2.2rem; }
    .card-inner { grid-template-columns: 1fr; gap: 1rem; }
    
    .brand-col { display: flex; align-items: center; text-align: left; gap: 1rem; margin-bottom: 0.5rem; }
    .logo-box { margin: 0; }
    .brand-col-text { flex: 1; }
    .view-count { display: inline-block; margin-left: 10px; }
    
    .details-col { padding: 1rem 0; border-top: 1px dashed rgba(0,0,0,0.1); border-bottom: 1px dashed rgba(0,0,0,0.1); }
    
    .action-col { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-top: 0.5rem; }
    .note-mobile { width: 100%; justify-content: center; margin-top: 0.5rem; }
    .circular-chart { margin: 0; transform: scale(0.8); transform-origin: left center;}
    .chart-label { display: none; }
    .btn { width: auto; flex: 1; margin-left: 1rem; }
    
    .top-1 .action-col { flex-direction: column; align-items: center;}
    .top-1 .btn { margin-left: 0; width: 100%; }
    .top-1 .circular-chart { display: none; }
}
