@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a1a2e;
    --secondary-dark: #16213e;
    --accent-dark: #0f3460;
    --gold: #d4af37;
    --light-gold: #f1e5c3;
    --text-primary: #1f2937;
    --text-light: #f9fafb;
    --text-muted: #6b7280;
    --bg-light: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --success: #10b981;
    --danger: #ef4444;
}

body.dark-mode {
    --text-primary: #f3f4f6;
    --bg-light: #0f172a;
    --border-color: #1e293b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    max-width: 400px;
    animation: slideUpLoad 0.8s ease-out;
}

@keyframes slideUpLoad {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.loading-logo {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.logo-svg {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: block;
    animation: rotateSpinLogo 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

@keyframes rotateSpinLogo {
    0% { transform: rotateZ(0deg) rotateX(0deg); }
    50% { transform: rotateZ(180deg) rotateX(180deg); }
    100% { transform: rotateZ(360deg) rotateX(360deg); }
}

.star-orbit {
    animation: orbitRotate 6s linear infinite;
    transform-origin: 50px 50px;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.star-point {
    animation: pointPulse 1.5s ease-in-out infinite;
}

.star-1 { animation-delay: 0s; }
.star-2 { animation-delay: 0.375s; }
.star-3 { animation-delay: 0.75s; }
.star-4 { animation-delay: 1.125s; }

@keyframes pointPulse {
    0%, 100% { r: 4; opacity: 0.6; }
    50% { r: 6; opacity: 1; }
}

.loading-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f1e5c3);
    border-radius: 2px;
    animation: progressBar 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes progressBar {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; }
}

.loading-text {
    color: rgba(241, 229, 195, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.dot {
    display: inline-block;
    animation: dotFade 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotFade {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.loading-tech-stack {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: techFloat 2s ease-in-out infinite;
}

.tech-badge:nth-child(1) { animation-delay: 0s; }
.tech-badge:nth-child(2) { animation-delay: 0.3s; }
.tech-badge:nth-child(3) { animation-delay: 0.6s; }
.tech-badge:nth-child(4) { animation-delay: 0.9s; }

@keyframes techFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ===== SPACE HERO SECTION ===== */
.space-hero {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    background: #000;
    margin-bottom: 0;
}

.three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.space-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.space-images-container {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
}

.space-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease-in-out;
}

.space-image.active {
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}


.space-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(26, 26, 46, 0.9) 100%
    );
    z-index: 2;
}

.space-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 3rem 2rem;
    color: var(--text-light);
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.space-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--light-gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: -1px;
}

.space-content p {
    font-size: 1.1rem;
    color: rgba(241, 229, 195, 0.9);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.space-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.space-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(241, 229, 195, 0.1) 100%);
    border: 2px solid var(--gold);
    color: var(--light-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.space-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, rgba(241, 229, 195, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--text-light);
    padding: 0;
    box-shadow: var(--shadow-xl);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 100%;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
}

.header-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--light-gold);
    margin: 0;
}

.tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.theme-toggle {
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold);
    color: var(--light-gold);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: scale(1.05);
}

/* ===== NAVIGATION ===== */
nav {
    max-width: 100%;
    display: flex;
    gap: 0;
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0;
}

.nav-link {
    flex: 1;
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-align: center;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--light-gold) 100%);
    transition: width 0.3s;
}

.nav-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--light-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--light-gold);
}

.nav-link.active::after {
    width: 100%;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1400px;
    margin: 0 auto;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== BLOG PAGE ===== */
.blog-container {
    padding: 4rem 2rem;
}

.search-bar {
    margin-bottom: 3rem;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

body.dark-mode .search-bar input {
    background: var(--bg-light);
    border-color: #334155;
    color: var(--text-primary);
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--light-gold);
    border-color: var(--gold);
}

body.dark-mode .filter-btn {
    background: transparent;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

/* ===== POST GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.post-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.dark-mode .post-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gold);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

body.dark-mode .post-title {
    color: var(--light-gold);
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
}

body.dark-mode .post-excerpt {
    color: #cbd5e1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.post-views {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--light-gold);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.post-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

body.dark-mode .modal-content {
    background: var(--bg-light);
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--danger);
}

.modal-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

body.dark-mode .modal-post-title {
    color: var(--light-gold);
}

.modal-post-content {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

body.dark-mode .modal-post-content {
    color: #e2e8f0;
}

/* ===== COURT CASES ===== */
.courts-container {
    padding: 4rem 2rem;
}

.search-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.search-controls input,
.search-controls select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

.search-controls button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--light-gold);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.courts-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.court-case {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

body.dark-mode .court-case {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.court-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.court-case:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.court-case:hover::before {
    left: 100%;
}

.case-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.case-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

body.dark-mode .case-name {
    color: var(--light-gold);
}

.case-name:hover {
    color: var(--gold);
}

.case-type-badge,
.case-status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.case-type-badge.criminal {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.case-type-badge.civil {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.case-type-badge.environmental {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.case-status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.case-field {
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

body.dark-mode .case-field {
    background: rgba(212, 175, 55, 0.08);
}

.case-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.case-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

body.dark-mode .case-value {
    color: #e2e8f0;
}

.case-description {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    color: var(--text-muted);
    margin: 1.5rem 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

body.dark-mode .case-description {
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
}

.parties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.party-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(241, 229, 195, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gold);
}

.case-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.case-view-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--light-gold);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.case-view-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 16px rgba(212, 175, 55, 0.2);
}

/* Case Detail Modal */
.case-detail-container {
    animation: slideUp 0.3s ease;
}

.case-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.detail-column {
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

body.dark-mode .detail-column {
    background: rgba(212, 175, 55, 0.08);
}

.detail-column h3 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

body.dark-mode .detail-column h3 {
    color: var(--light-gold);
}

.detail-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-item span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

body.dark-mode .detail-item span {
    color: #e2e8f0;
}

.parties-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.party-item {
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-primary);
}

body.dark-mode .party-item {
    color: #e2e8f0;
}

.case-detail-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

body.dark-mode .case-detail-section {
    background: rgba(212, 175, 55, 0.08);
}

.case-detail-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
}

body.dark-mode .case-detail-section h3 {
    color: var(--light-gold);
}

.case-summary-text {
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 0.95rem;
}

body.dark-mode .case-summary-text {
    color: #cbd5e1;
}

.case-detail-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.detail-note {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* ===== CRYPTO PAGE ===== */
.crypto-container {
    padding: 4rem 2rem;
}

.crypto-search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.crypto-search-box input,
.crypto-search-box select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.crypto-search-box input:focus,
.crypto-search-box select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.crypto-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

body.dark-mode .crypto-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.crypto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.crypto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.crypto-card:hover::before {
    left: 100%;
}

.crypto-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.crypto-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

body.dark-mode .crypto-name {
    color: var(--light-gold);
}

.crypto-symbol {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.crypto-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.crypto-signal {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.signal-buy {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.signal-hold {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.signal-sell {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.crypto-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== ADMIN PAGE ===== */
.admin-container {
    padding: 4rem 2rem;
}

.admin-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

body.dark-mode .admin-container h2 {
    color: var(--light-gold);
}

.admin-section {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

body.dark-mode .admin-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.admin-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

body.dark-mode .admin-section h3 {
    color: var(--light-gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

body.dark-mode .form-group label {
    color: #e2e8f0;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--light-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

body.dark-mode .btn-secondary {
    border-color: #334155;
    color: #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.empty-state a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* ===== LOADING & ANIMATIONS ===== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    background: var(--bg-light);
}

/* ===== COURT TRANSCRIPTS STYLING ===== */
.btn-back {
    background: linear-gradient(135deg, #d4af37, #f1e5c3);
    color: #1a1a2e;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.case-details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    animation: slideInUp 0.5s ease;
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.info-item label {
    display: block;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}

.case-parties {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(241, 229, 195, 0.05));
    border-radius: 8px;
}

.case-parties h3 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 1rem;
}

.case-parties ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-parties li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.case-parties li:last-child {
    border-bottom: none;
}

.case-parties li:before {
    content: "▸ ";
    color: var(--gold);
    font-weight: bold;
    margin-right: 0.5rem;
}

.case-summary {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.case-summary h3 {
    color: var(--gold);
    margin-top: 0;
}

.case-summary p {
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}

.transcripts-section {
    margin-top: 3rem;
}

.transcripts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.transcripts-header h3 {
    margin: 0;
    color: var(--gold);
    font-size: 1.3rem;
}

.btn-download-all {
    background: linear-gradient(135deg, #d4af37, #f1e5c3);
    color: #1a1a2e;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.transcripts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.transcript-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.transcript-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transform: translateY(-4px);
}

.transcript-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--gold);
    font-size: 1.1rem;
}

.transcript-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.transcript-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.transcript-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-view-transcript,
.btn-download-transcript {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view-transcript:hover {
    background: var(--gold);
    color: #1a1a2e;
}

.btn-download-transcript:hover {
    background: var(--gold);
    color: #1a1a2e;
}

.transcript-viewer {
    margin-top: 2rem;
    background: var(--bg-light);
    border: 2px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.transcript-viewer.hidden {
    display: none;
}

.transcript-viewer-header {
    background: linear-gradient(135deg, #d4af37, #f1e5c3);
    color: #1a1a2e;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transcript-viewer-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.btn-close-viewer {
    background: transparent;
    border: none;
    color: #1a1a2e;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.btn-close-viewer:hover {
    transform: scale(1.2);
}

.transcript-content {
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
    background: var(--bg-light);
}

.transcript-content pre {
    margin: 0;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.case-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.transcript-count {
    color: var(--gold);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #f1e5c3);
    color: #1a1a2e;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE TRANSCRIPT STYLES ===== */
@media (max-width: 768px) {
    .transcripts-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-download-all {
        width: 100%;
    }

    .transcripts-list {
        grid-template-columns: 1fr;
    }

    .case-info-grid {
        grid-template-columns: 1fr;
    }

    .transcript-actions {
        flex-direction: column;
    }

    .transcript-content {
        max-height: 400px;
        padding: 1rem;
    }

    .case-details {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .transcripts-header h3 {
        font-size: 1.1rem;
    }

    .transcript-card {
        padding: 1rem;
    }

    .case-info-grid {
        gap: 1rem;
    }

    .info-item {
        padding: 1rem;
    }

    .transcript-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {

body.dark-mode footer {
    border-top-color: #334155;
    background: linear-gradient(135deg, #0f172a 0%, #1a1f3a 100%);
}

/* ===== MODALS SPECIAL ===== */
.modal-post-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

body.dark-mode .modal-post-title {
    color: var(--light-gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 3rem 1rem;
    }

    header h1 {
        font-size: 2.2rem;
    }

    nav {
        flex-direction: column;
    }

    .nav-link {
        padding: 1rem;
    }

    .blog-container,
    .crypto-container,
    .courts-container,
    .admin-container {
        padding: 2rem 1rem;
    }

    .posts-grid,
    .crypto-grid,
    .courts-results {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .case-meta {
        grid-template-columns: 1fr;
    }

    .search-controls {
        grid-template-columns: 1fr;
    }

    .search-controls button {
        grid-column: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    nav {
        gap: 0;
    }

    .nav-link {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .admin-section {
        padding: 1.5rem;
    }
}