/* craftvideo.ru - Modern Minimal Design */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #93c5fd;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    background-color: #ffffff;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    object-fit: cover;
    height: 180px;
    width: 100%;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

/* Video Cards */
.video-card {
    border: none;
}

.video-card .card-img-top {
    border-radius: 0.5rem 0.5rem 0 0;
}

.video-card .card-body {
    padding: 1rem;
}

/* Category Cards */
.category-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--light-color);
    margin-top: auto;
}

/* Error Pages */
.error-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

/* Utility Classes */
.rounded-lg {
    border-radius: 1rem;
}

.shadow-sm {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-card i {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Video Player */
.video-player-container {
    background-color: #000;
    border-radius: 0.75rem;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: auto;
    max-height: 70vh;
}

/* Like Button Animation */
.like-btn.liked {
    animation: likeAnimation 0.5s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Search Results */
.search-highlight {
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.1em 0.2em;
    border-radius: 0.25rem;
}

/* Mobile Menu */
@media (max-width: 992px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}