@tailwind base;
@tailwind components;
@tailwind utilities;

/* Modern stílusok */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
    background-color: #f8f9fa;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 60px; /* Footer magassága */
}

/* Header stílusok */
.header {
    background-color: white;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header .container {
    padding: 0 15px;
}

.header h1 {
    font-size: 1rem;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 120px);
    padding-bottom: 2rem;
}

/* Container responsive padding */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Lépés indikátor */
.steps-wrapper {
    margin: 1rem 0 2rem 0;
}

.steps {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    min-width: 0;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    width: calc(100% - 40px);
    height: 2px;
    background-color: #e9ecef;
    left: calc(50% + 20px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.step-item.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

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

/* Form stílusok */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.form-control {
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    width: 100%;
}

/* Képek stílusai */
.home-images {
    margin-bottom: 2rem;
}

.image-wrapper {
    position: relative;
    padding: 1rem;
    text-align: center;
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
}

.hover-effect {
    transition: transform 0.3s ease;
    max-width: 150px;
}

.hover-effect:hover {
    transform: scale(1.05);
}

/* Countdown stílusok */
.activeCountdown,
.upcomingCountdown {
    word-break: break-word;
    line-height: 1.4;
}

/* Alert stílusok */
.alert {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    word-break: break-word;
}

/* Accordion stílusok */
.accordion-button {
    border-radius: var(--border-radius) !important;
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.accordion-body {
    padding: 1.5rem;
}

/* Support cards */
.support-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 1rem;
}

.support-card:hover {
    transform: translateY(-5px);
}

/* Footer stílusok */
.footer {
    background-color: #0f2f4ad6;
    color: white;
    padding: 0.1rem 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.08);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer p {
    color: white;
    font-size: 14px;
    margin: 0;
}

/* Reszponzív igazítások */
@media (max-width: 576px) {
    .header h1 {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hover-effect {
        max-width: 120px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .steps {
        gap: 0.5rem;
    }

    .step-item:not(:last-child)::after {
        width: calc(100% - 20px);
        left: calc(50% + 10px);
    }

    .support-card {
        margin-bottom: 1rem;
    }
    
    .card-body.p-4.p-lg-5 {
        padding: 1.5rem !important;
    }
    
    .d-grid.gap-2.col-md-6.mx-auto {
        max-width: 100% !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .col-lg-8 {
        max-width: 95%;
    }
}

/* Extra kis képernyőkre */
@media (max-width: 400px) {
    .header .d-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .step-number {
        margin-right: 1rem;
        margin-bottom: 0;
    }
}

/* Utility classes */
.text-break {
    word-break: break-word !important;
}

.overflow-hidden {
    overflow: hidden;
}

/* Button improvements */
.btn-group-vertical .btn {
    width: 100%;
}

/* Table responsive */
.table-responsive {
    overflow-x: auto;
}