/* Unified Kandidat Pages Styles with Theme Support */

/* CSS Custom Properties for Theming */
:root {
    /* Default theme (ART - Blue) */
    --primary-color: #00baff;
    --primary-dark: #0066cc;
    --primary-light: #00e6ff;
    --accent-color: #0088cc;
    --bg-gradient-start: #f8fbff;
    --bg-gradient-end: #e8f4ff;
    --header-gradient-start: #00baff;
    --header-gradient-mid: #0088cc;
    --header-gradient-end: #0066cc;
    --card-primary: #00baff;
    --text-primary: #0066cc;
    --shadow-primary: rgba(0, 186, 255, 0.1);
    --shadow-hover: rgba(0, 186, 255, 0.2);
    --border-primary: rgba(0, 186, 255, 0.2);
    --overlay-gradient-start: rgba(0, 186, 255, 0.8);
    --overlay-gradient-end: rgba(0, 102, 204, 0.6);
}



/* Base Styles */
body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    font-family: 'Poppins', sans-serif;
}

/* Header Section */
.kandidat-header {
    background: linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-mid) 50%, var(--header-gradient-end) 100%);
    color: white;
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.kandidat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}



.header-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}



/* Search and Filter Section */
.search-filter-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 2rem;
    margin: -50px auto 4rem;
    max-width: 1000px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 50px var(--shadow-primary);
}



.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-primary);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
}



.search-input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--border-primary);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}



.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.3);
}

.results-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
    font-size: 1rem;
}

.results-count {
    font-weight: 600;
    color: var(--primary-color);
}

/* Enhanced Card Styles */
.kandidat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    justify-items: center;
}

.kandidat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 0 10px 40px var(--shadow-primary);
    width: 400px;
    height: 525px;
    display: flex;
    flex-direction: column;
}

.kandidat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px var(--shadow-hover);
    border-color: rgba(var(--primary-color), 0.3);
}

.card-image-wrapper {
    position: relative;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kandidat-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--overlay-gradient-start) 0%, var(--overlay-gradient-end) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.kandidat-card:hover .card-overlay {
    opacity: 1;
}

.quick-actions {
    display: flex;
    gap: 1rem;
}

.quick-action-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(var(--primary-color), 0.1);
    border: 1px solid rgba(var(--primary-color), 0.2);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}



.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
    position: relative;
    overflow: hidden;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-color), 0.4);
    color: white;
}



.modern-btn i {
    transition: transform 0.3s ease;
}

.modern-btn:hover i {
    transform: translateX(3px);
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(var(--primary-color), 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}



@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    display: none;
}

.empty-state.active {
    display: block;
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kandidat-cards {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .kandidat-card {
        width: 350px;
        height: 525px;
    }
}

@media (max-width: 992px) {
    .kandidat-header {
        padding: 120px 0 60px;
    }
}

@media (max-width: 768px) {
    .kandidat-header {
        padding: 100px 0 50px;
    }

    .header-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.4rem;
    }

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .search-filter-section {
        margin: -30px 1rem 2rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        min-height: 46px;
    }

    .kandidat-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .kandidat-card {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 460px;
        border-radius: 20px;
    }

    .card-image-wrapper {
        height: 230px;
    }
}

@media (max-width: 480px) {
    .kandidat-header {
        padding: 90px 0 50px;
    }

    .header-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .header-title {
        font-size: 1.7rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }

    .search-filter-section {
        margin: -20px 0.5rem 1.5rem;
        padding: 1.2rem;
        border-radius: 16px;
    }

    .search-input {
        font-size: 0.95rem;
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    }

    .kandidat-card {
        max-width: 100%;
        min-height: 440px;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .card-description {
        font-size: 0.88rem;
    }

    .modern-btn {
        padding: 0.7rem 1.6rem;
        font-size: 0.85rem;
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }
}

/* Disable card overlay on touch — tap goes straight to link */
@media (hover: none) and (pointer: coarse) {
    .kandidat-card:hover {
        transform: none;
        box-shadow: 0 10px 40px var(--shadow-primary);
    }

    .kandidat-card:hover .card-image {
        transform: none;
    }

    .card-overlay {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kandidat-card {
    animation: fadeInUp 0.6s ease-out;
}

.kandidat-card:nth-child(1) { animation-delay: 0.1s; }
.kandidat-card:nth-child(2) { animation-delay: 0.2s; }
.kandidat-card:nth-child(3) { animation-delay: 0.3s; }
.kandidat-card:nth-child(4) { animation-delay: 0.4s; } 