/**
 * InstrukcijePro Custom Styles
 * Custom CSS overrides for Geeks template
 */

/* Subject Cards */
.card.card-border-primary {
    height: 100%;
}

.card-border-primary .card-body h3 {
    min-height: 3.5rem;
    line-height: 1.3;
}

.icon-shape.icon-xxl i {
    font-size: 24px;
}

.subject-card-unavailable {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-card-unavailable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subject-card-overlay {
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.97);
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.subject-card-unavailable:hover .subject-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

[data-bs-theme="dark"] .subject-card-overlay {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Featured Tutor */
.featured-tutor {
    position: relative;
    background: linear-gradient(135deg, var(--gk-warning-bg-subtle) 0%, var(--gk-body-bg) 100%) !important;
    border: 1px solid var(--gk-warning-border-subtle) !important;
}

/* Search Wizard */
.wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bs-gray-300);
    transition: all 0.3s ease;
}

.wizard-dot.active {
    background-color: var(--bs-primary);
    width: 12px;
    height: 12px;
}

.wizard-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-subject-item.active,
.wizard-location-item.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.wizard-subject-item.active *,
.wizard-location-item.active * {
    color: var(--bs-white) !important;
}

.wizard-persona-item.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}

.wizard-persona-item.active * {
    color: var(--bs-white) !important;
}

/* WhatsApp Mobile Button */
@media (min-width: 992px) {
    .whatsapp-mobile-only {
        display: none !important;
    }
}

/* Mini Calendar */
.mini-calendar {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-secondary);
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: var(--bs-border-radius);
    cursor: default;
    transition: all 0.2s ease;
}

.calendar-day.other-month {
    color: var(--bs-secondary);
    opacity: 0.4;
}

.calendar-day.today {
    background-color: var(--bs-light);
    font-weight: 600;
}

.calendar-day.calendar-clickable {
    cursor: pointer;
}

/* Offcanvas */
@media (min-width: 768px) {
    .offcanvas-end {
        width: 500px;
    }
}

@media (max-width: 767.98px) {
    .offcanvas-end,
    .offcanvas-start {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: 90vh !important;
        border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0 !important;
        transform: translateY(100%) !important;
    }

    .offcanvas-end.show,
    .offcanvas-start.show {
        transform: translateY(0) !important;
    }
}

/* Subject Tags */
.btn-tag {
    cursor: default;
    pointer-events: none;
}


/* Homepage Hero Image Containers */
.hero-image-container {
    padding-top: 100px;
    padding-bottom: 150px;
}

/* Subjects Page Background Glow */
.bg-mentor-glow {
    background-repeat: no-repeat;
    background-size: contain;
}

/* Cursor Pointer Utility */
.cursor-pointer {
    cursor: pointer;
}

/* Tutor Profile - Background Cover */
.profile-bg-cover {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 228px;
}

/* Tutor Profile - Avatar Placeholder (large) */
.avatar-placeholder-xl {
    width: 300px;
    height: 300px;
    font-size: 5rem;
    font-weight: bold;
}

/* Max Width 200px Utility */
.mw-200 {
    max-width: 200px;
}

/* Icon Box Medium (50x50) */
.icon-box-md {
    width: 50px;
    height: 50px;
}

/* Small Star Rating Icons */
.star-sm {
    font-size: 12px;
}

/* Icon Size 40px */
.icon-40 {
    font-size: 40px;
}

/* Review Star Rating (from korisnik/dashboard.php) */
.star-rating-input .star-buttons {
    display: flex;
    gap: 2px;
}

.star-rating-input .star-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating-input .star-btn:hover {
    transform: scale(1.1);
}

/* Theme-aware Logo Switching */
/* Default state: hide dark logo, show light logo */
.logo-light,
.logo-dark {
    max-height: 40px;
}

.logo-light {
    display: inline-block !important;
}

.logo-dark {
    display: none !important;
}

html .logo-light {
    display: inline-block !important;
}

html .logo-dark {
    display: none !important;
}

/* Light theme: show colored logo, hide white logo */
[data-bs-theme="light"] .logo-light {
    display: inline-block !important;
}

[data-bs-theme="light"] .logo-dark {
    display: none !important;
}

/* Dark theme: hide colored logo, show white logo */
[data-bs-theme="dark"] .logo-light {
    display: none !important;
}

[data-bs-theme="dark"] .logo-dark {
    display: inline-block !important;
}

/* Auto theme: Use prefers-color-scheme */
@media (prefers-color-scheme: light) {
    [data-bs-theme="auto"] .logo-light {
        display: inline-block !important;
    }

    [data-bs-theme="auto"] .logo-dark {
        display: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    [data-bs-theme="auto"] .logo-light {
        display: none !important;
    }

    [data-bs-theme="auto"] .logo-dark {
        display: inline-block !important;
    }
}

/* Footer logo always shows white version (footer has dark background) */
.logo-footer {
    display: inline-block !important;
}
