/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.menu-logo {
    margin-right: 10px;
}

.container {
    max-width: 1200px;
}

.cont {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Навигация */
.navbar-brand img {
    margin-right: 10px;
}

/* Карточки */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.7);
}

.hero-section {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.7);
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 250px;
    object-fit: cover;
}

/* Герой-секция */
.hero-section {
    background: linear-gradient(250deg, #004cf2, #6319c3);
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

/* Герой секция кнопки */
.btn-join {
    background-color: #fba536;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.btn-join:hover {
    background-color: #e5942e;
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.7);
}

.btn-feed {
    background-color: #ff5362;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.btn-feed:hover {
    background-color: #e04957;
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.7);
}

/* Стиль при наведении */
.btncategory:hover {
    background-color: #fba536 !important;
    border-color: #fba536 !important;
    color: white !important;
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.7) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    transition: 
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  }
  
  /* Активная кнопка (выбранная категория) */
  .btncategory.active {
    background-color: #fba536 !important;
    border-color: #fba536 !important;
    color: white !important;
    box-shadow: 0 15px 30px -20px rgba(0, 0, 0, 0.7) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
  }

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Цвет иконок на главной */
.advantages-icon {
    color: #004cf2 !important;
}

/* Формы */
.form-control, .form-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* Адаптивные изображения */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Футер */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    flex-shrink: 0;
}

footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}


/* !!! Перенести в auth.css !!! */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.auth-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.auth-form h2 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.auth-form .form-control {
    margin-bottom: 15px;
}

.auth-form .btn {
    width: 100%;
    margin-top: 10px;
}

.auth-form .text-center {
    margin-top: 20px;
}

.auth-form a {
    color: #6e8efb;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* delete photo!!!!! */
.btn-delete-photo {
    transition: all 0.3s;
}

.btn-delete-photo:hover {
    transform: scale(1.05);
}

/* Анимация удаления */
.photo-deleting {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; height: 0; padding: 0; margin: 0; }
}

.lead {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}