/* assets/css/how-it-works.css - Stilovi za stranicu "Kako radi" */

/* HERO SECTION */
.how-it-works-hero {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 0 0 20px 20px;
    margin-top: -1rem;
}

.how-it-works-hero-icon i {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    animation: howItWorksFloat 3s infinite ease-in-out;
}

@keyframes howItWorksFloat {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-10px) scale(1.05) rotate(5deg); }
}

/* STEP CARDS */
.how-it-works-step-card {
    transition: all 0.4s ease;
    border: 2px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.how-it-works-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.how-it-works-step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(13, 110, 253, 0.2);
}

.how-it-works-step-card:hover::before {
    opacity: 1;
}

.step-number .badge {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.step-badge-4 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3) !important;
}

.how-it-works-step-card:hover .step-number .badge {
    transform: scale(1.1) rotate(10deg);
}

/* KORAK SPECIFIČNE BOJE */
.how-it-works-step-card:nth-child(1):hover {
    border-color: var(--bs-primary);
}

.how-it-works-step-card:nth-child(2):hover {
    border-color: var(--bs-success);
}

.how-it-works-step-card:nth-child(3):hover {
    border-color: var(--bs-warning);
}

.how-it-works-step-card:nth-child(4):hover {
    border-color: var(--bs-danger);
}

/* GUIDE ACCORDION */
.guide-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.accordion-button {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px !important;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: rgba(13, 110, 253, 0.1);
    color: var(--bs-primary);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.1);
}

.accordion-button:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: translateY(-2px);
}

.accordion-body {
    background: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
}

.accordion-body ol,
.accordion-body ul {
    padding-left: 1.5rem;
}

.accordion-body li {
    margin-bottom: 0.75rem;
    color: #495057;
}

/* PREMIUM ICONS */
.premium-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.premium-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 193, 7, 0.2);
}

/* FAQ ITEMS */
.faq-item {
    padding: 1.25rem;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .how-it-works-hero {
        padding: 3rem 0;
    }
    
    .how-it-works-hero h1 {
        font-size: 2.2rem;
    }
    
    .how-it-works-step-card {
        margin-bottom: 1.5rem;
    }
    
    .step-number .badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .guide-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .premium-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
}

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.how-it-works-step-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.how-it-works-step-card:nth-child(1) { animation-delay: 0.1s; }
.how-it-works-step-card:nth-child(2) { animation-delay: 0.2s; }
.how-it-works-step-card:nth-child(3) { animation-delay: 0.3s; }
.how-it-works-step-card:nth-child(4) { animation-delay: 0.4s; }