/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-feature-settings: "kern";
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

/* Custom Properties - Cypherpunk Theme */
:root {
    --primary-color: #00ff41;
    --primary-dark: #00cc33;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b00;
    --accent-secondary: #00ffff;
    --accent-purple: #9d4edd;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-light: #666666;
    --text-neon: #00ff41;
    --background: #0a0a0a;
    --surface: #111111;
    --surface-elevated: #1a1a1a;
    --border: #333333;
    --border-neon: #00ff41;
    --shadow-sm: 0 1px 2px 0 rgb(0 255 65 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 255 65 / 0.2), 0 2px 4px -2px rgb(0 255 65 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 255 65 / 0.3), 0 4px 6px -4px rgb(0 255 65 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 255 65 / 0.4), 0 8px 10px -6px rgb(0 255 65 / 0.2);
    --shadow-neon: 0 0 20px rgb(0 255 65 / 0.5);
    --radius: 4px;
    --font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 50%, var(--background) 100%);
    color: var(--text-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--border-neon);
    box-shadow: 0 2px 0 var(--primary-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.03) 2px,
            rgba(0, 255, 65, 0.03) 4px
        ),
        radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0, 0 0, 0 0; }
    100% { background-position: 0 100px, 0 0, 0 0; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
    text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    color: var(--text-neon);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color); }
    to { text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color), 0 0 15px var(--primary-color); }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.8;
    font-weight: 400;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: var(--font-family);
    text-shadow: 0 0 5px var(--accent-color);
    animation: numberFlicker 3s ease-in-out infinite;
}

@keyframes numberFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-family: var(--font-family);
}

/* Introduction Section */
.introduction {
    padding: 4rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
    position: relative;
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.02) 50%, transparent),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(0, 255, 65, 0.05) 100px,
            rgba(0, 255, 65, 0.05) 101px
        );
    pointer-events: none;
}

.intro-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-image {
    position: relative;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-neon);
    box-shadow: var(--shadow-neon), inset 0 0 20px rgba(0, 255, 65, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-neon), 0 0 30px var(--primary-color), inset 0 0 30px rgba(0, 255, 65, 0.2);
    border-color: var(--accent-color);
}

.intro-text {
    max-width: 600px;
}

.intro-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-neon);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    font-family: var(--font-display);
    text-shadow: 0 0 5px var(--primary-color);
    position: relative;
    z-index: 2;
}

.intro-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
    position: relative;
    z-index: 2;
}

.intro-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--surface-elevated);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-family: var(--font-family);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight:hover {
    background: var(--surface-elevated);
    color: var(--text-neon);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    border-color: var(--border-neon);
    text-shadow: 0 0 5px var(--primary-color);
}

.highlight:nth-child(1):hover { border-color: var(--primary-color); }
.highlight:nth-child(2):hover { border-color: var(--accent-color); }
.highlight:nth-child(3):hover { border-color: var(--accent-secondary); }
.highlight:nth-child(4):hover { border-color: var(--accent-purple); }
.highlight:nth-child(5):hover { border-color: var(--primary-color); }

/* Main Content */
.main {
    padding: 4rem 0;
    background-color: var(--surface);
    min-height: 60vh;
}

/* Filters */
.filters {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: end;
    position: relative;
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-secondary));
    border-radius: var(--radius) var(--radius) 0 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-neon);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-family);
    text-shadow: 0 0 3px var(--primary-color);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-family);
}

.filter-select:hover {
    border-color: var(--border-neon);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.filter-select:focus {
    outline: none;
    border-color: var(--border-neon);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.book-card {
    background: var(--surface-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(0, 255, 65, 0.2);
    border-color: var(--border-neon);
}

.book-cover {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-cover-placeholder {
    color: var(--text-neon);
    font-size: 3rem;
    opacity: 0.7;
    text-shadow: 0 0 10px var(--primary-color);
}


.book-priority.priority-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    text-shadow: 0 0 5px #ef4444;
}

.book-priority.priority-medium {
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent-color);
    border-color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.book-priority.priority-low {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
    text-shadow: 0 0 5px #10b981;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-display);
}

.book-author {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--font-family);
}

.book-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.book-genre {
    display: inline-block;
    background: var(--surface);
    color: var(--text-neon);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-priority {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-family);
    border: 1px solid;
}

.book-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: var(--font-family);
}

.book-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.book-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    color: var(--text-neon);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-neon);
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.book-link:hover {
    background: var(--surface-elevated);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    text-shadow: 0 0 5px var(--primary-color);
    border-color: var(--primary-color);
}

.book-link.secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.book-link.secondary:hover {
    background: var(--surface-elevated);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
    text-shadow: 0 0 5px var(--accent-color);
}

/* Footer */
.footer {
    background: var(--background);
    color: var(--text-secondary);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--border-neon);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 255, 65, 0.02) 20px,
            rgba(0, 255, 65, 0.02) 21px
        );
    pointer-events: none;
}

.footer p {
    margin-bottom: 0.5rem;
    font-family: var(--font-family);
    position: relative;
    z-index: 1;
}

.footer-note {
    opacity: 0.7;
    font-size: 0.875rem;
    color: var(--text-neon);
    text-shadow: 0 0 3px var(--primary-color);
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card {
    animation: fadeInUp 0.6s ease forwards;
}

.book-card:nth-child(even) {
    animation-delay: 0.1s;
}

.book-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-neon);
    font-family: var(--font-display);
    text-shadow: 0 0 5px var(--primary-color);
}

.empty-state p {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    font-family: var(--font-family);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .intro-title {
        font-size: 1.75rem;
    }
    
    .intro-highlights {
        justify-content: center;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: unset;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .book-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .introduction {
        padding: 2rem 0;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-description {
        font-size: 0.9rem;
    }
    
    .highlight {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-cover {
        height: 150px;
    }
}
