/* Základní styly pro Kuchařku */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigace */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Jazykový přepínač */
.language-switcher .dropdown-toggle {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.language-switcher .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher .dropdown-menu {
    min-width: 120px;
}

/* Karty receptů */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Hvězdičky hodnocení */
.fa-star {
    font-size: 0.9rem;
}

/* Tlačítka */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

/* Formuláře */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Alert zprávy */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Hero sekce */
.jumbotron {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    margin-top: auto;
}

footer h5 {
    color: #fff;
    font-weight: bold;
}

/* Spižírna a lednice */
.pantry-item, .fridge-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.pantry-item.expiring-soon {
    border-left-color: var(--warning-color);
    background: #fff3cd;
}

.pantry-item.expired {
    border-left-color: var(--danger-color);
    background: #f8d7da;
}

/* Vyhledávání podle ingrediencí */
.ingredient-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

.ingredient-tag .remove {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

.ingredient-tag .remove:hover {
    color: #ff6b6b;
}

/* Recepty */
.recipe-meta {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.recipe-meta .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.recipe-meta .meta-item:last-child {
    margin-bottom: 0;
}

.recipe-meta .meta-item i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Komentáře */
.comment {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.comment-header {
    display: flex;
    justify-content-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Profil */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

/* Bodový systém */
.points-badge {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Responsivní design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card-columns {
        column-count: 1;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .jumbotron h1 {
        font-size: 1.5rem;
    }
    
    .jumbotron p {
        font-size: 1rem;
    }
}

/* Animace */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Tooltip */
.tooltip {
    font-size: 0.875rem;
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Badge */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Progress bar */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Utility třídy */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* WYSIWYG Editor styly */
.tinymce-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.tinymce-content h1,
.tinymce-content h2,
.tinymce-content h3,
.tinymce-content h4,
.tinymce-content h5,
.tinymce-content h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.tinymce-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.tinymce-content h2 {
    font-size: 1.75rem;
}

.tinymce-content h3 {
    font-size: 1.5rem;
}

.tinymce-content p {
    margin-bottom: 1rem;
}

.tinymce-content ul,
.tinymce-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.tinymce-content li {
    margin-bottom: 0.5rem;
}

.tinymce-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.tinymce-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.tinymce-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.tinymce-content th,
.tinymce-content td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

.tinymce-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.tinymce-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.tinymce-content a:hover {
    text-decoration: underline;
}

/* TinyMCE editor kontejner */
.tox-tinymce {
    border-radius: 0.375rem !important;
    border: 1px solid #ced4da !important;
}

.tox-tinymce:hover {
    border-color: #86b7fe !important;
}

.tox-tinymce:focus-within {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Blog post content */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h1:first-child,
.blog-content h2:first-child,
.blog-content h3:first-child {
    margin-top: 0;
}

/* Recipe description */
.recipe-description {
    font-size: 1rem;
    line-height: 1.7;
}

.recipe-description h1,
.recipe-description h2,
.recipe-description h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

.recipe-description h1:first-child,
.recipe-description h2:first-child,
.recipe-description h3:first-child {
    margin-top: 0;
}

.recipe-description ul,
.recipe-description ol {
    margin-bottom: 1rem;
}

.recipe-description li {
    margin-bottom: 0.25rem;
}
