/* Index Page CSS - Ana Sayfa Stilleri */

/* Slider Section Styles */
.slider-section {
    position: relative;
}

.carousel-item {
    height: 600px;
    background: #000;
}

.carousel-item img,
.carousel-item video {
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    padding: 0;
}

.caption-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.carousel-caption h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.caption-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.caption-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
}

.carousel-indicators {
    bottom: 30px;
    display: none!important;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.dropdown-toggle::after {
    display: none;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

/* İKÜ Advantages Section */
.iku-advantages {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantage-box {
    background: #fff;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.advantage-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    border-color: #E31837;
}

.advantage-box .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E31837, #C53030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    overflow: hidden;
}

.advantage-box .icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -50%;
    left: -50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.advantage-box:hover .icon-box::before {
    transform: scale(3);
}

.advantage-box .icon-box i {
    color: white;
    font-size: 35px;
    position: relative;
    z-index: 2;
}

.advantage-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}

.advantage-box p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.advantage-box .learn-more {
    color: #E31837;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.advantage-box:hover .learn-more {
    color: #C53030;
    transform: translateX(5px);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption h2 {
        font-size: 32px;
    }
    
    .carousel-caption h3 {
        font-size: 18px;
    }
    
    .carousel-caption p {
        font-size: 16px;
        display: none;
    }
    
    .caption-buttons .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    /* Department Tabs - Mobilde 2 şerli sütun */
    .department-tabs .nav-tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        border-bottom: none;
        margin-bottom: 20px;
    }
    
    .department-tabs .nav-item {
        width: 100% !important;
        margin: 0 !important;
        display: block;
    }
    
    .department-tabs .nav-link {
        font-size: 10px;
        padding: 12px 6px;
        text-align: center;
        border-radius: 8px;
        border: 1px solid #ddd;
        margin: 0;
        width: 100%;
        background: #f8f9fa;
        color: #6c757d;
        display: block;
        text-decoration: none;
    }
    
    .department-tabs .nav-link.active {
        background: #E31837 !important;
        color: white !important;
        border-color: #E31837 !important;
    }
    
    .department-tabs .nav-link:hover {
        background: #e9ecef;
        color: #495057;
    }
    
    .department-tabs .nav-link.active:hover {
        background: #E31837 !important;
        color: white !important;
    }
    
    .department-tabs .nav-link i {
        display: block;
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    /* Department Cards - Mobilde 2 şerli sütun */
    .department-card .department-info h4 {
        font-size: 14px;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    
    .department-card .department-faculty {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .department-card .department-meta span {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .department-card {
        margin-bottom: 20px;
    }
    
    .iku-advantages {
        padding: 50px 0;
    }
    
    .advantage-box {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .advantage-box .icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .advantage-box .icon-box i {
        font-size: 28px;
    }
    
    .advantage-box h4 {
        font-size: 16px;
    }
}

/* Departments Section Styles */
.departments-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #E31837, #C53030);
    border-radius: 2px;
}

.department-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #E31837;
}

.department-header {
    background: linear-gradient(135deg, #E31837, #C53030);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.department-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.department-card:hover .department-header::before {
    top: -60%;
    left: -60%;
}

.department-icon {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.department-name {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.department-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.department-faculty {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.department-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.department-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.department-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-department {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary-dept {
    background: #E31837;
    border-color: #E31837;
    color: white;
}

.btn-primary-dept:hover {
    background: #C53030;
    border-color: #C53030;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-dept {
    background: transparent;
    border-color: #E31837;
    color: #E31837;
}

.btn-outline-dept:hover {
    background: #E31837;
    color: white;
    transform: translateY(-2px);
}

/* Stats Counter Styles */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.stat-item {
    text-align: center;
    padding: 30px 15px;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #E31837;
    display: block;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* News Section Styles */
.news-section {
    padding: 80px 0;
    background: white;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #E31837;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: #E31837;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #C53030;
    transform: translateX(5px);
}

/* Video Mini Player Styles */
.video-popup {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 270px;
    height: 480px;
    background-color: transparent;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: none;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border: 3px solid #E31837;
    border-bottom: none;
}

.video-popup.show {
    transform: translateX(0);
}

.video-popup-header {
    background-color: #E31837;
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.video-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-popup-body {
    height: calc(100% - 40px);
    position: relative;
}

.video-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Special Day Popup Styles */
.special-day-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.special-day-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.popup-content {
    position: relative;
    max-width: 500px;
    max-height: 80vh;
    margin: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .video-popup {
        width: 240px;
        height: 320px;
    }
    
    .popup-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
}