/* Custom CSS for home.petrbohac.cz */

:root {
    --primary-color: #2c3e50;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Header Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Theme Toggle Button */
#themeToggle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: rotate(20deg) scale(1.1);
}

/* Footer Styling */
.footer-main {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

.footer-main a:hover {
    opacity: 0.8;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Dark Theme Adjustments */
[data-bs-theme="dark"] body {
    background-color: #1a1a1a;
}

[data-bs-theme="dark"] .navbar {
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .footer-main {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #444;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #666;
}
