/* Animasyon kütüphanesi import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');


/* Genel stil sıfırlama ve temeller */
body {
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

.mb-6 {
    margin-bottom: 4rem;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sayfa arka plan deseni */
.page-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--kku-lightred) 1px, transparent 1px), radial-gradient(var(--kku-gold) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Hero Bölümü Animasyonu */
.hero-section {
    background: linear-gradient(135deg, var(--kku-darkred), var(--kku-red));
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    min-height: 120px;
    display: flow;
    align-items: center;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 70%, transparent 90%), radial-gradient(circle at 50% 150%, rgba(var(--kku-gold), 0.1) 0%, transparent 75%);
    background-size: 200% 200%, 100% 100%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%, 0% 0%;
    }

    50% {
        background-position: 100% 50%, 0% 0%;
    }

    100% {
        background-position: 0% 50%, 0% 0%;
    }
}

/* Özel ayırıcı */
.divider-custom {
    margin: 1.25rem 0 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .divider-custom .divider-custom-line {
        width: 100%;
        max-width: 10rem;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
    }

    .divider-custom .divider-custom-icon {
        color: white;
        font-size: 1.5rem;
        margin: 0 1rem;
    }

/* Bölüm Başlıkları */
.section-heading {
    position: relative;
    z-index: 1;
    margin-bottom: 2.5rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--kku-red), var(--kku-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.heading-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kku-red), var(--kku-gold), var(--kku-navy));
    border-radius: 4px;
}

/* Personel Kartları - 3D Efektli */
.personel-card {
    perspective: 1000px;
    height: 260px;
    margin-bottom: 30px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-lg);
}

.personel-card:hover .card-inner {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.card-front {
    background: white;
    color: var(--text);
}

.card-back {
    background: linear-gradient(135deg, var(--kku-navy), var(--kku-blue));
    color: white;
    transform: rotateY(180deg);
}

.card-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Altıgen fotoğraf efekti */
.personel-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hexagon {
    position: relative;
    width: 150px;
    height: 170px;
    margin: 0 auto;
}

.hexagon-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
    transform: scale(0.95);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 3px solid var(--light-gray);
}

.hexagon-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-normal);
    min-height: 220px;
    border-radius: 8px;
    min-width: 250px;
}

.personel-card:hover .hexagon-inner {
    transform: scale(1);
    border-color: var(--kku-gold);
}

.personel-card:hover .hexagon-photo {
    transform: scale(1.05);
}

/* Personel bilgileri */
.personel-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Personel İsim Tasarımı ve Efektleri */
.personel-name-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
    animation-duration: 0.8s;
}

.personel-name {
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--kku-red), var(--kku-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: nameShine 3s infinite alternate;
}

.name-highlight {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--kku-gold), transparent);
    opacity: 0.7;
    border-radius: 2px;
}

@keyframes nameShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.personel-card:hover .personel-name {
    animation: nameGlow 1.5s ease;
}

@keyframes nameGlow {
    0% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        text-shadow: 0 0 10px rgba(158, 27, 50, 0.3);
    }

    100% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

.personel-title {
    margin-bottom: 1rem;
}

    .personel-title .badge {
        background: linear-gradient(135deg, var(--kku-navy), var(--kku-blue));
        color: white;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-md);
        font-weight: 500;
        font-size: 1.5rem;
        box-shadow: var(--shadow-sm);
        padding-bottom: 26px;
    }

.personel-contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex-grow: 1;
}

    .personel-contacts li {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
        color: var(--text-light);
        font-size: 0.9rem;
    }

        .personel-contacts li i {
            color: var(--kku-red);
            width: 20px;
            margin-right: 0.75rem;
        }

/* Çevirme butonları */
.flip-btn {
    margin-top: auto;
    text-align: right;
}

.btn-flip {
    background: transparent;
    border: none;
    color: var(--kku-red);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

    .btn-flip:hover {
        background-color: rgba(158, 27, 50, 0.1);
    }

.card-back .btn-flip {
    color: white;
}

    .card-back .btn-flip:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Arka kart içeriği */
.back-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .back-header h4 {
        font-size: 1.7rem;
        margin-bottom: 0.25rem;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        animation-duration: 0.5s;
    }

    .back-header .subtitle {
        opacity: 0.8;
        font-size: 1rem;
        animation-duration: 0.5s;
    }

.back-body {
    flex-grow: 1;
}

.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.personel-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
    animation-duration: 0.5s;
}

    .personel-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateX(5px);
    }

    .personel-link i {
        font-size: 1.25rem;
        margin-right: 1rem;
    }

/* Kayıt bulunamadı durumu */
.empty-state {
    padding: 4rem 0;
    text-align: center;
}

.empty-state-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--mid-gray);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-light);
}

/* Scroll animasyonu */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s;
}

    .reveal-section.active {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s;
}

    .reveal-item.active {
        opacity: 1;
        transform: translateY(0);
    }

/* Arama bölümü stilleri */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: -20px;
}

.simple-search-box {
    position: relative;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .simple-search-box:focus-within {
        box-shadow: 0 8px 20px rgba(158, 27, 50, 0.15);
        border-color: rgba(158, 27, 50, 0.2);
    }

.search-icon {
    color: var(--kku-red);
    margin-left: 20px;
    font-size: 1rem;
}

.simple-search-input {
    flex: 1;
    border: none;
    height: 50px;
    padding: 0 20px;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

    .simple-search-input::placeholder {
        color: #aaa;
    }

.simple-search-clear {
    background: none;
    border: none;
    color: #ccc;
    padding: 0 20px;
    cursor: pointer;
    font-size: 0.9rem;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease;
}

    .simple-search-clear.visible {
        visibility: visible;
        opacity: 1;
    }

    .simple-search-clear:hover {
        color: var(--kku-red);
    }

.simple-search-results {
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--kku-darkred);
    min-height: 24px;
}

/* Arama sonuçları filtrelemesi ve sonuç mesajı */
.personel-item {
    transition: all 0.3s ease;
}

    .personel-item.hidden {
        display: none;
    }

.no-results-msg {
    text-align: center;
    padding: 3rem 1rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
    max-width: 100%;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--kku-red);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.no-results-msg h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.no-results-msg p {
    color: var(--mid-gray);
}

/* Responsive ayarlamalar */
@media (max-width: 991.98px) {
    .personel-card {
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
        min-height: 100px;
    }

    .personel-card {
        height: auto;
        min-height: 280px;
    }

    .hexagon {
        width: 120px;
        height: 140px;
    }

    .personel-name {
        font-size: 1.2rem;
    }

    .simple-search-box {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .simple-search-input {
        padding: 10px 15px 10px 40px;
    }
    
    /* Fix search box appearing above main menu issue */
    .search-section {
        position: relative;
        z-index: 1; /* Lower z-index than the main menu */
    }
    
    /* Ensure proper search results display */
    .simple-search-results {
        position: absolute;
        width: 100%;
        z-index: 10;
        max-height: 250px;
        overflow-y: auto;
    }
    
    /* Improve personel card layout on mobile */
    .card-inner {
        height: auto;
        min-height: 100%;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .personel-contacts {
        margin-bottom: 10px;
    }
    
    .personel-contacts li {
        margin-bottom: 5px;
    }
    
    /* Improve back card visibility */
    .card-back {
        min-height: 280px;
    }
}

/* Additional mobile styles for extra small devices */
@media (max-width: 575.98px) {
    .hexagon-photo {
        min-height: 160px;
        min-width: 160px;
    }
    
    .personel-image-container {
        margin-bottom: 10px;
    }
    
    .personel-card .card-front .row {
        flex-direction: column;
    }
    
    .personel-card .col-md-5,
    .personel-card .col-md-7 {
        width: 100%;
        padding: 0;
    }
    
    .personel-info {
        text-align: center;
    }
    
    .personel-contacts li {
        justify-content: center;
    }
    
    .flip-btn {
        justify-content: center;
    }
}

.simple-search-input {
    background-color: transparent;
    border: none !important;
    border-bottom: 3px solid #f5f5f5 !important;
    border-radius: 0;
    outline: none;
    height: 3rem;
    width: 100%;
    font-size: 1.6rem !important;
    margin: 20px 0 20px 0 !important;
    padding: 0;
    box-shadow: none;
    box-sizing: content-box;
    transition: all 0.3s;
    padding-left: 11px !important;
}
