/* FoodSharing Client Styles */

:root {
    --primary-color: #198754;
    --secondary-color: #20c997;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

/* Карточки предложений */
.offer-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.offer-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 2.5rem;
}

.offer-card .card-text {
    min-height: 3rem;
}

/* Feature icons */
.feature-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step numbers */
.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Статистика */
.stat-card {
    padding: 2rem 1rem;
}

/* Badges */
.badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

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

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

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    border-radius: 0.75rem;
    overflow: hidden;
}

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

/* Footer */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card {
    animation: fadeIn 0.5s ease;
}

/* Loading state */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Price styling */
del {
    opacity: 0.6;
}

/* Alert modifications */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

/* Text colors */
.text-success {
    color: var(--primary-color) !important;
}

/* Background colors */
.bg-success {
    background-color: var(--primary-color) !important;
}

/* Offer image container */
.offer-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.offer-card:hover .offer-image {
    transform: scale(1.05);
}

/* Градиенты для плейсхолдеров */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.offer-card:nth-child(3n+1) .bg-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.offer-card:nth-child(3n+2) .bg-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.offer-card:nth-child(3n+3) .bg-gradient {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
