/* 
   Дружбафест 2026 - CSS Stylesheet
   Theme: Light Summer, Warm Sunshine, Friendly Gradients
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Rubik:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #d9664c;
    --primary-gradient: linear-gradient(135deg, #d9664c 0%, #f7a072 100%);
    --secondary-gradient: linear-gradient(135deg, #2b988f 0%, #4ae58c 100%);
    --sky-gradient: linear-gradient(135deg, #3a96e5 0%, #43e5ec 100%);
    --gold-gradient: linear-gradient(135deg, #e5bb1c 0%, #d94c51 100%);
    
    --bg-light: #fefcf9;
    --bg-summer: #faf7f0;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    
    --status-pending: #d97706;
    --status-approved: #059669;
    --status-rejected: #dc2626;
    
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 10px;
    
    --transition-speed: 0.25s;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-summer);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Base Layout Container */
main.container {
    flex: 1;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

/* Beautiful Sticky Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid rgba(254, 180, 123, 0.2);
    padding: 0.75rem 1rem;
    transition: all var(--transition-speed);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-custom .nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed) ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-item.active .nav-link {
    background: rgba(255, 126, 95, 0.1);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.btn-nav-action {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(217, 102, 76, 0.25);
    transition: all var(--transition-speed) ease;
}

.btn-nav-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 126, 95, 0.4) !important;
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 4.5rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 126, 95, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Custom Cards */
.card-custom {
    background: var(--card-bg);
    border: 1px solid rgba(254, 180, 123, 0.15);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 126, 95, 0.1);
    border-color: rgba(254, 180, 123, 0.3);
}

.card-header-gradient {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    padding: 1.25rem;
    font-weight: 600;
}

/* Summer Buttons */
.btn-primary-summer {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(217, 102, 76, 0.15);
    transition: all var(--transition-speed);
}

.btn-primary-summer:hover, .btn-primary-summer:focus {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 102, 76, 0.25);
}

.btn-secondary-summer {
    background: var(--sky-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(58, 150, 229, 0.15);
    transition: all var(--transition-speed);
}

.btn-secondary-summer:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(58, 150, 229, 0.25);
}

.btn-success-summer {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(43, 152, 143, 0.15);
    transition: all var(--transition-speed);
}

.btn-success-summer:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(43, 152, 143, 0.25);
}

.btn-outline-summer {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.btn-outline-summer:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-radius: var(--border-radius-sm) !important;
    font-weight: 600;
}

/* Program / Timeline */
.timeline-item {
    padding-left: 2rem;
    position: relative;
    border-left: 3px solid #feb47b;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    border-left: 3px solid transparent;
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-summer);
    box-shadow: 0 0 0 3px rgba(254, 180, 123, 0.4);
}

.timeline-time {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    background-color: #eee;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 1.5rem 1.25rem;
    color: white;
    opacity: 0.9;
    transition: opacity var(--transition-speed);
}

.gallery-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
}

.gallery-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.25rem 0 0 0;
}

/* Chat Styles */
.chat-container {
    /* Natural height for page scrolling */
}

.chat-messages {
    padding: 1.5rem;
    background: #fffdf9;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(254, 180, 123, 0.15);
    margin-bottom: 1rem;
}

.chat-bubble {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    max-width: 85%;
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.chat-bubble-user {
    background: #fff;
    border-left: 5px solid #ff7e5f;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.chat-bubble-proposal {
    background: #fefdf6;
    border: 2px dashed rgba(245, 158, 11, 0.4);
    margin-right: auto;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.05);
}

.chat-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.role-badge {
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.role-badge-root {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
}

.role-badge-superuser {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.role-badge-vip {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.chat-proposal-card {
    background: #ffffff;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.proposal-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #4facfe;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Beautiful Status Badges */
.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
}

.status-pending {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.status-approved {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.status-rejected {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Tables Styling */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
}

.table-custom thead th {
    background: transparent;
    border-bottom: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
}

.table-custom tbody tr {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-speed);
}

.table-custom tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 4px 12px rgba(255, 126, 95, 0.06);
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.table-custom tbody tr td:first-child {
    border-top-left-radius: var(--border-radius-sm);
    border-bottom-left-radius: var(--border-radius-sm);
}

.table-custom tbody tr td:last-child {
    border-top-right-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
}

/* Form Styles */
.form-control-custom, .form-select {
    border: 1px solid rgba(217, 102, 76, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    font-family: inherit;
    background-color: white;
    color: var(--text-main);
    transition: all var(--transition-speed);
}

.form-control-custom:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(217, 102, 76, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 85px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert-custom {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border: none;
    font-weight: 500;
    margin-bottom: 0.75rem;
    animation: slideInRight 0.3s ease;
}

/* Footer styling */
.footer-custom {
    background: #fffbf5;
    border-top: 2px solid rgba(254, 180, 123, 0.2);
    padding: 2.5rem 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tab styling overrides for custom looks */
.nav-tabs-custom {
    border-bottom: 2px solid rgba(254, 180, 123, 0.15);
    margin-bottom: 1.5rem;
}

.nav-tabs-custom .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    position: relative;
    background: transparent !important;
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary-color);
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 5px;
}
