/* =========================================
   1. CSS VARIABLES & THEME SETUP
========================================= */
:root {
    /* Brand Colors */
    --brand-primary: #d90429;
    --brand-glow: #ef233c;
    
    /* Status Colors (For Badges) */
    --tag-new: #ef233c; 
    --tag-update: #3a86ff; 
    --tag-last: #fb8500; 
    --tag-admit: #06d6a0; 
    --tag-result: #8338ec;

    /* Base Colors (Light Mode) */
    --bg-body: #f4f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #e2e8f0;
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
    
    /* Fonts */
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-body: #050505;
    --bg-card: #121212;
    --bg-card-hover: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-color: #2a2a2a;
    --shadow-card: 0 5px 20px rgba(0,0,0,0.3);
}

/* Resets */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--bg-body); color: var(--text-main); padding: 50px 0; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. ANIMATIONS (Blinking Badges)
========================================= */
@keyframes blinkEffect {
    0% { opacity: 1; transform: scale(1); filter: brightness(100%); }
    50% { opacity: 0.8; transform: scale(1.05); filter: brightness(130%); }
    100% { opacity: 1; transform: scale(1); filter: brightness(100%); }
}
.tag-badge { animation: blinkEffect 1.5s infinite ease-in-out; }

/* =========================================
   3. GRID LAYOUT STYLES
========================================= */
/* Main Grid: 3 Columns */
.list-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    align-items: start; 
}

/* Flex Column for stacking cards */
.list-column { display: flex; flex-direction: column; gap: 30px; }

/* Individual Card Styling */
.list-card {
    background: var(--bg-card); 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    overflow: hidden; 
    transition: 0.3s;
    box-shadow: var(--shadow-card);
}
.list-card:hover { 
    border-color: var(--text-muted); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* Card Header */
.lc-header {
    background: linear-gradient(90deg, #151515, #000); 
    padding: 18px 20px;
    border-bottom: 2px solid var(--brand-primary); 
    display: flex; align-items: center; gap: 12px;
}
[data-theme="light"] .lc-header { background: linear-gradient(90deg, #333, #111); }

.lc-title { 
    font-weight: 900; font-size: 1.1rem; 
    text-transform: uppercase; color: #fff; letter-spacing: 0.5px; 
}

/* List Items */
.lc-ul li {
    padding: 14px 20px; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 0.9rem; color: var(--text-muted);
    cursor: pointer; transition: 0.2s; 
    display: flex; align-items: center; justify-content: space-between; 
    font-weight: 500;
}
.lc-ul li:last-child { border-bottom: none; }

.lc-ul li:hover { 
    background: var(--bg-card-hover); 
    padding-left: 25px; 
    color: var(--text-main); 
}

/* Bullet Point */
.lc-bullet { 
    width: 6px; height: 6px; 
    background: var(--brand-primary); 
    border-radius: 50%; display: inline-block; 
    box-shadow: 0 0 5px var(--brand-primary); 
}

.lc-text { flex: 1; margin: 0 12px; }

/* Footer View All Button */
.lc-footer { 
    background: var(--bg-body); 
    padding: 12px; text-align: center; 
    border-top: 1px solid var(--border-color); 
}
.lc-btn-all { 
    font-size: 0.75rem; font-weight: 800; 
    color: #777; text-transform: uppercase; 
    letter-spacing: 1px; transition: 0.3s; 
}
.lc-btn-all:hover { color: var(--brand-primary); letter-spacing: 2px; }

/* Badge Styles */
.tag-badge { 
    padding: 2px 8px; border-radius: 4px; 
    font-size: 0.65rem; font-weight: 800; 
    color: #fff; margin-left: auto; text-transform: uppercase; 
}
.t-new { background: var(--tag-new); box-shadow: 0 0 5px var(--tag-new); }
.t-upd { background: var(--tag-update); }
.t-res { background: var(--tag-result); }
.t-adm { background: var(--tag-admit); color: #000; }
.t-lst { background: var(--tag-last); }

/* Responsive */
@media (max-width: 1024px) { .list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .list-grid { grid-template-columns: 1fr; } }
