
    /* ===== GLOBAL VARIJABLE I STILOVI ===== */
:root {
    --quiz-primary: #6f42c1;
    --quiz-secondary: #4a3f8c;
    --quiz-dark: #121212;
    --quiz-card: #1e1e1e;
    --quiz-border: #2d2d2d;
    --quiz-text: #ffffff;
    --quiz-text-muted: #aaaaaa;
    --quiz-easy: #28a745;
    --quiz-medium: #ffc107;
    --quiz-hard: #dc3545;
}


/* ===== MAIN CONTAINER ===== */
.categories-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HEADER SEKCIJA ===== */
.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--quiz-text);
}

.category-header p {
    color: var(--quiz-text-muted);
    font-size: 1.1rem;
}

/* ===== QUIZ GRID ===== */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ===== QUIZ CARD ===== */
.quiz-card {
    background: var(--quiz-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--quiz-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--quiz-primary);
}

/* Quiz Card Header (sa slikom) */
.quiz-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.quiz-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.quiz-card:hover .quiz-card-image {
    transform: scale(1.05);
}

/* Difficulty Badge */
.quiz-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-easy {
    background: var(--quiz-easy);
    color: white;
}

.difficulty-medium {
    background: var(--quiz-medium);
    color: #000;
}

.difficulty-hard {
    background: var(--quiz-hard);
    color: white;
}

/* Quiz Card Body */
.quiz-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Quiz Meta (vreme i kategorija) */
.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quiz-time {
    color: var(--quiz-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.quiz-category {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(111, 66, 193, 0.15);
    color: var(--quiz-primary);
    border: 1px solid rgba(111, 66, 193, 0.3);
}

/* Quiz Title */
.quiz-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--quiz-text);
    line-height: 1.3;
}

/* Quiz Creator */
.quiz-creator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.creator-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-name {
    color: var(--quiz-text-muted);
    font-size: 0.9rem;
}

/* Quiz Stats */
.quiz-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quiz-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-weight: 600;
}

.quiz-price {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Quiz Players */
.quiz-players {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.players-count {
    font-weight: 700;
    color: var(--quiz-text);
    margin-bottom: 5px;
}

.players-text {
    color: var(--quiz-text-muted);
    font-size: 0.85rem;
}

/* Spots Left (Almost Full) - samo za neke kvizove */
.spots-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.spots-left {
    font-weight: 600;
    color: #ffc107;
}

.almost-full {
    font-size: 0.8rem;
    color: #ffc107;
    font-weight: 600;
}

/* Play Button */
.quiz-action {
    margin-top: auto;
}

.btn-play {
    background: var(--quiz-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-play:hover {
    background: #5a32a3;
    color: white;
    transform: translateY(-2px);
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.quiz-pagination .page-link {
    background: var(--quiz-card);
    border-color: var(--quiz-border);
    color: var(--quiz-text);
}

.quiz-pagination .page-link:hover {
    background: var(--quiz-primary);
    border-color: var(--quiz-primary);
    color: white;
}

.quiz-pagination .page-item.active .page-link {
    background: var(--quiz-primary);
    border-color: var(--quiz-primary);
    color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .quiz-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .quiz-grid {
        grid-template-columns: 1fr;
    }

    .categories-container {
        padding: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Delay animations for each card */
.quiz-card:nth-child(1) { animation-delay: 0.1s; }
.quiz-card:nth-child(2) { animation-delay: 0.2s; }
.quiz-card:nth-child(3) { animation-delay: 0.3s; }
.quiz-card:nth-child(4) { animation-delay: 0.4s; }
.quiz-card:nth-child(5) { animation-delay: 0.5s; }
.quiz-card:nth-child(6) { animation-delay: 0.6s; }



    .bg-light-warning {
        background-color: rgba(255, 193, 7, 0.1);
        border-color: rgba(255, 193, 7, 0.3);
    }

    .bg-light-primary {
        background-color: rgba(59, 130, 246, 0.08);
    }

    .btn-gradient {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        transition: all 0.3s ease;
    }

    .btn-gradient:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .modal-content {
        border-radius: 16px;
        overflow: hidden;
        color: #0f172a;
    }

    .rounded-circle.bg-warning {
        background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    }

    .border {
        border-color: #e2e8f0 !important;
    }

    .modal.fade .modal-dialog {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
        transition: all 0.3s ease-out;
    }

    .modal.show .modal-dialog {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* Dodatni stilovi za bolji izgled */
    .modal-backdrop {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .modal-content {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .border {
        border-radius: 8px !important;
    }