/* Areena.ru - Custom Styles with Tailwind CSS */
/* Primary: mahogany (#8B4049) | Accent: beige (#F5F5DC) */

/* CSS Reset for lists */
ul, ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation menu - NO markers */
.nav-menu li {
    margin-bottom: 0 !important;
    list-style: none !important;
}

.nav-menu li::before,
.nav-menu li::after {
    display: none !important;
    content: none !important;
}

.nav-menu ul,
.nav-menu ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Footer - NO markers */
footer li {
    list-style: none !important;
    margin-bottom: 0 !important;
}

footer li::before,
footer li::after {
    display: none !important;
    content: none !important;
}

footer ul,
footer ol {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Content lists - styled with beige markers */
.content-section ul,
.content-section ol {
    padding-left: 1.5rem !important;
    margin: 1rem 0 !important;
}

.content-section li {
    position: relative !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.125rem !important;
    line-height: 1.75 !important;
}

.content-section ul li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.6rem !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #F5F5DC !important;
    border-radius: 2px !important;
    border: 1px solid #8B4049 !important;
}

.content-section ol {
    counter-reset: list-counter !important;
}

.content-section ol li {
    counter-increment: list-counter !important;
}

.content-section ol li::before {
    content: counter(list-counter) "." !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #F5F5DC !important;
    font-weight: 700 !important;
    text-shadow: 1px 1px 0 #8B4049 !important;
}

/* Typography */
body {
    font-family: 'Lato', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #8B4049 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

h2 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #8B4049 !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #8B4049 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4 !important;
}

p {
    font-size: 1.125rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.8 !important;
}

/* Header/Navigation */
.site-header {
    background: linear-gradient(135deg, #8B4049 0%, #6d323a 100%) !important;
    padding: 1rem 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15) !important;
}

.logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.logo-container img {
    width: 45px !important;
    height: 45px !important;
    box-shadow: none !important;
}

.brand-name {
    color: #F5F5DC !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
}

.nav-menu a {
    color: #F5F5DC !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    transition: opacity 0.3s ease !important;
}

.nav-menu a:hover {
    opacity: 0.8 !important;
}

/* CTA Button in nav */
.cta-button {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    border: 2px solid #F5F5DC !important;
    color: #F5F5DC !important;
    background: transparent !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    background: #F5F5DC !important;
    color: #8B4049 !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #8B4049 0%, #a04d56 50%, #8B4049 100%) !important;
    padding: 4rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.hero-section::before {
    content: "" !important;
    position: absolute !important;
    top: -50% !important;
    right: -10% !important;
    width: 400px !important;
    height: 400px !important;
    background: rgba(245, 245, 220, 0.05) !important;
    border-radius: 50% !important;
    animation: float 6s ease-in-out infinite !important;
}

.hero-section::after {
    content: "" !important;
    position: absolute !important;
    bottom: -30% !important;
    left: -5% !important;
    width: 300px !important;
    height: 300px !important;
    background: rgba(245, 245, 220, 0.03) !important;
    border-radius: 50% !important;
    animation: float 8s ease-in-out infinite reverse !important;
}

.hero-content h1 {
    color: #F5F5DC !important;
    font-size: 2.75rem !important;
    margin-bottom: 1.5rem !important;
}

.hero-content p {
    color: rgba(245, 245, 220, 0.9) !important;
    font-size: 1.25rem !important;
    margin-bottom: 2rem !important;
    max-width: 600px !important;
}

.hero-button {
    display: inline-block !important;
    padding: 1rem 2.5rem !important;
    border: 2px solid #F5F5DC !important;
    color: #F5F5DC !important;
    background: transparent !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
}

.hero-button:hover {
    background: #F5F5DC !important;
    color: #8B4049 !important;
    transform: translateY(-2px) !important;
}

.hero-image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

/* Content Sections */
.content-section {
    padding: 4rem 0 !important;
}

.content-section:nth-child(even) {
    background-color: #faf9f6 !important;
}

.section-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 4px 15px rgba(139, 64, 73, 0.1) !important;
    border-left: 4px solid #8B4049 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.section-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(139, 64, 73, 0.15) !important;
}

/* Images styling */
.content-section img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
}

/* Tables */
.table-container {
    overflow-x: auto !important;
    margin: 2rem 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(139, 64, 73, 0.1) !important;
}

table {
    width: 100% !important;
    min-width: 500px !important;
    border-collapse: collapse !important;
    background: white !important;
}

thead {
    background: #8B4049 !important;
}

th {
    color: #F5F5DC !important;
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
}

td {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #eee !important;
    font-size: 1rem !important;
}

tbody tr:hover {
    background-color: rgba(245, 245, 220, 0.3) !important;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #8B4049 0%, #6d323a 100%) !important;
    color: #F5F5DC !important;
    padding: 3rem 0 1.5rem !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.footer-column h4 {
    color: #F5F5DC !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.footer-column a {
    color: rgba(245, 245, 220, 0.8) !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    display: block !important;
    padding: 0.5rem 0 !important;
    transition: color 0.3s ease !important;
}

.footer-column a:hover {
    color: #F5F5DC !important;
}

.footer-column p {
    color: rgba(245, 245, 220, 0.8) !important;
    font-size: 1rem !important;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 245, 220, 0.2) !important;
    padding-top: 1.5rem !important;
    text-align: center !important;
}

.footer-bottom p {
    color: rgba(245, 245, 220, 0.7) !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) !important;
    }
    50% {
        transform: translateY(-20px) rotate(5deg) !important;
    }
}

@keyframes wave {
    0%, 100% {
        transform: scaleX(1) !important;
    }
    50% {
        transform: scaleX(1.05) !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0 !important;
        transform: translateY(30px) !important;
    }
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out forwards !important;
}

/* Decorative animated elements */
.wave-decoration {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%23ffffff' d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") !important;
    background-size: 100% 100% !important;
    animation: wave 4s ease-in-out infinite !important;
}

/* Bootstrap Icons styling */
.bi {
    color: #8B4049 !important;
    font-size: 1.5rem !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
}

.feature-icon {
    width: 60px !important;
    height: 60px !important;
    background: rgba(139, 64, 73, 0.1) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

.feature-icon .bi {
    font-size: 1.75rem !important;
    color: #8B4049 !important;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    color: #F5F5DC !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.25rem !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
    }

    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #8B4049 !important;
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1rem !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .hero-section {
        padding: 3rem 0 !important;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .hero-content p {
        font-size: 1.1rem !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero-image {
        order: -1 !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    .content-section {
        padding: 2.5rem 0 !important;
    }

    .section-card {
        padding: 1.5rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px !important;
    }

    .hero-content h1 {
        font-size: 1.75rem !important;
    }

    .hero-button {
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }

    .cta-button {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.95rem !important;
    }

    p {
        font-size: 1rem !important;
    }

    th, td {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
}

/* Container */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

/* Utility classes */
.text-mahogany {
    color: #8B4049 !important;
}

.text-beige {
    color: #F5F5DC !important;
}

.bg-mahogany {
    background-color: #8B4049 !important;
}

.bg-beige {
    background-color: #F5F5DC !important;
}
