/* ====================================
   Rally 3K - Main Stylesheet
   Конструктор ралли (Р3К)
   ==================================== */

:root {
    --rally-red: #dc2626;
    --rally-dark: #1a1a1a;
    --rally-gray: #2d2d2d;
    --rally-accent: #f59e0b;
}

/* Base */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--rally-dark) 0%, var(--rally-gray) 100%) !important;
    border-bottom: 3px solid var(--rally-red);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand .brand-icon {
    color: var(--rally-red);
    margin-right: 8px;
}

.navbar-brand .brand-accent {
    color: var(--rally-red);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--rally-accent) !important;
}

.btn-logout {
    background-color: var(--rally-red);
    color: #fff !important;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
footer {
    background: var(--rally-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 3px solid var(--rally-red);
}

footer a {
    color: var(--rally-accent);
    text-decoration: none;
}

footer a:hover {
    color: #fbbf24;
}

/* Checkered flag decoration */
.checkered-border {
    height: 8px;
    background-image:
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    background-color: #fff;
}

/* Messages */
.alert-rally {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-rally.alert-success {
    background-color: #059669;
    color: #fff;
}

.alert-rally.alert-error,
.alert-rally.alert-danger {
    background-color: var(--rally-red);
    color: #fff;
}

/* Page title decoration */
.page-title-rally {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--rally-dark);
    position: relative;
    padding-bottom: 10px;
}

.page-title-rally::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--rally-red);
    border-radius: 2px;
}

/* ====================================
   Login Page Styles
   ==================================== */
.login-card-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.login-page-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-login {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
}

.btn-login:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* ====================================
   Home Page Styles
   ==================================== */
.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.coming-soon-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.user-avatar {
    width: 50px;
    height: 50px;
}

/* ====================================
   Events Page Styles
   ==================================== */
.event-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.status-badge-new { background-color: #3b82f6; }
.status-badge-approval { background-color: #06b6d4; }
.status-badge-preparation { background-color: #f59e0b; }
.status-badge-ready { background-color: #10b981; }
.status-badge-completed { background-color: #6b7280; }
.status-badge-cancelled { background-color: #ef4444; }

/* ====================================
   Sportsmans Page Styles
   ==================================== */
.table-hover tbody tr:hover {
    background-color: rgba(220, 38, 38, 0.05);
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
