/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Навигация */
.navbar-brand {
    font-weight: bold;
}

/* Jumbotron стиль */
.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Карточки */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Контент */
.content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #667eea;
}

.content h3 {
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Sidebar админки */
.sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #333;
    padding: 12px 20px;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

/* Footer */
footer {
    margin-top: 50px;
}

footer a:hover {
    color: #667eea !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

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

/* Form styling */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5568d3;
    border-color: #5568d3;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

/* Search results */
.search-result {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.search-result:last-child {
    border-bottom: none;
}

/* Book cover placeholder */
.book-cover-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: white;
    font-size: 4rem;
}
