/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Podkova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1c1b1d;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title i {
    font-size: 2.5rem;
    color: #ffd700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Status Buttons */
.status-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.status-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.status-btn.active {
    background: #ffd700;
    color: #1c1b1d;
    border-color: #ffd700;
    font-weight: 600;
}

.status-btn i {
    font-size: 0.8rem;
}

.sidebar-toggle {
    display: none;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 2rem;
    width: 100%;
    max-height: calc(100vh - 4rem);
    background: transparent;
    padding: 8px;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-header i {
    color: #ffd700;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-section h4 {
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-group.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #a0a0a0;
    font-size: 14px;
}

.checkbox-group.tags .checkbox-label {
    padding: 3px 6px;
    font-size: 12px;
    white-space: nowrap;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.filter-checkbox {
    display: none;
}

.checkmark {
    width: 14px;
    height: 14px;
    border: 2px solid #666;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
}

.filter-checkbox:checked + .checkmark {
    background: #ffd700;
    border-color: #ffd700;
}

.filter-checkbox:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #a0a0a0;
    font-size: 14px;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.sort-radio {
    display: none;
}

.radio-button {
    width: 14px;
    height: 14px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.sort-radio:checked + .radio-button {
    border-color: #ffd700;
}

.sort-radio:checked + .radio-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
}

.sidebar-footer {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-bar {
    position: relative;
    margin-bottom: 1rem;
}

.search-bar input {
    width: 100%;
    padding: 8px 8px 8px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #666;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.1);
}

.search-bar i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 14px;
}

.clear-filters-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid #666;
    border-radius: 6px;
    color: #a0a0a0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border-color: #888;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.book-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-20px) scale(1.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.book-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.book-card:hover .book-cover {
    filter: brightness(0.8);
}

.book-info {
    padding: 2rem;
    background: white;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    border-radius: 0 0 16px 16px;
    min-height: 200px;
}

.book-card:hover .book-info {
    opacity: 1;
    transform: translateY(0);
}

.book-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    line-height: 1.3;
}

.book-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 0.8rem;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.book-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 12px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars {
    color: #ffd700;
    font-size: 12px;
}

.book-date {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.format-icon {
    margin-left: 0.5rem;
    font-size: 1.2em;
    color: #888;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.5rem;
}

.tag {
    background: #667eea;
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.book-language {
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.book-review {
    margin-top: 0.3rem;
}

.review-link {
    color: #667eea;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.review-link:hover {
    color: #5a6fd8;
}

.book-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book-card:hover .book-status {
    opacity: 1;
}

.status-read {
    background: rgba(34, 197, 94, 0.8);
}

.status-reading {
    background: rgba(255, 193, 7, 0.8);
}

.status-want-to-read {
    background: rgba(59, 130, 246, 0.8);
}

/* No results */
.no-results {
    text-align: center;
    color: #e0e0e0;
    padding: 3rem;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
        position: static;
        max-height: none;
        overflow-y: visible;
        grid-row: 2;
    }

    .sidebar.open {
        display: block;
    }

    .sidebar-toggle {
        display: block;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .book-cover {
        height: 220px;
    }
    
    .book-info {
        padding: 1rem;
    }
    
    .book-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .book-cover {
        height: 180px;
    }
    
    .book-info {
        padding: 0.8rem;
    }
    
    .book-title {
        font-size: 0.9rem;
    }
    
    .book-author {
        font-size: 0.8rem;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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