/*
 * Üniversite Etkinlik Sistemi - Biletino Tarzı CSS Dosyası
 */

/* Global Değişkenler */
:root {
    --primary-color: #ff5722;
    --secondary-color: #3f51b5;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    
    --border-radius: 8px;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --btn-shadow: 0 2px 5px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Genel Stiller */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    background-color: #fff;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #e64a19;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--btn-shadow);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e64a19;
    border-color: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Header Stiller */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 40px;
}

.search-box .form-control {
    border-radius: 50px 0 0 50px;
    border: 1px solid #e0e0e0;
    padding-left: 1.25rem;
}

.search-box .search-btn {
    border-radius: 0 50px 50px 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
}

.header-buttons .user-menu {
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

.main-nav .nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .nav-item {
    margin-right: 1.5rem;
}

.main-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

.main-nav .nav-link:hover, 
.main-nav .nav-link.active {
    color: var(--primary-color);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav .nav-link:hover::after, 
.main-nav .nav-link.active::after {
    width: 100%;
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

/* Story Circles (Instagram Tarzı) */
.story-circles-container {
    background-color: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.story-circles {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: 1rem;
}

.story-circles::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.story-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    min-width: 80px;
}

.story-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.story-circle-border {
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #fe0, #f90, #f60, #f30);
}

.story-circle-border.story-circle-primary {
    background: linear-gradient(45deg, #2196F3, #3F51B5);
}

.story-circle-border.story-circle-success {
    background: linear-gradient(45deg, #4CAF50, #009688);
}

.story-circle-border.story-circle-warning {
    background: linear-gradient(45deg, #FFC107, #FF9800);
}

.story-circle-border.story-circle-info {
    background: linear-gradient(45deg, #00BCD4, #03A9F4);
}

.story-circle-border.story-circle-danger {
    background: linear-gradient(45deg, #F44336, #E91E63);
}

.story-circle-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-circle-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.story-circle-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--dark-color);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ana Slider */
.main-slider {
    margin-bottom: 2rem;
}

.slider-bg {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.slider-content {
    position: relative;
    color: white;
    padding: 6rem 0;
    max-width: 600px;
}

.event-date {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.event-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.event-location {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.event-participants {
    margin-bottom: 2rem;
}

/* Arama Bölümü */
.search-container {
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 100;
}

.search-bar-wrapper {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

.search-bar-wrapper label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.search-bar-wrapper .form-select, 
.search-bar-wrapper .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
}

.search-bar-wrapper .search-submit {
    height: 100%;
    width: 100%;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin-top: 1.9rem;
}

/* Etkinlik Kartları */
.event-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: white;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.event-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-date-box {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
    text-transform: uppercase;
}

.event-card-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-color);
}

.event-location, .event-time {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.event-location i, .event-time i {
    width: 20px;
}

.event-capacity {
    margin-top: 0.75rem;
}

.event-capacity .progress {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.capacity-text {
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    justify-content: space-between;
}

/* Yaklaşan Etkinlikler */
.upcoming-events {
    margin-bottom: 2rem;
}

.upcoming-day {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.day-header {
    background-color: var(--light-color);
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.day-date {
    font-size: 1.1rem;
    font-weight: 600;
}

.day-name {
    color: var(--gray-color);
    font-weight: normal;
}

.day-events {
    padding: 0.5rem;
}

.event-item {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.event-item:last-child {
    border-bottom: none;
}

.event-time {
    flex: 0 0 60px;
    font-weight: 600;
    color: var(--primary-color);
}

.event-content {
    flex: 1;
    padding-right: 1rem;
}

.event-content .event-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.event-content .event-location {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.event-capacity .badge {
    font-weight: normal;
    font-size: 0.75rem;
}

.event-action {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.no-events-message {
    padding: 3rem;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    color: var(--gray-color);
}

.no-events-message i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Çok Katılanlar */
.most-attended-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: white;
    height: 100%;
}

.most-attended-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.most-attended-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.most-attended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.most-attended-card:hover .most-attended-image img {
    transform: scale(1.05);
}

/* Kategori badge - Resmin üstünde */
.most-attended-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 8px 16px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.most-attended-card:hover .most-attended-category-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.status-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    z-index: 2;
}

.status-badge.completed {
    background-color: rgba(76, 175, 80, 0.8);
}

.status-badge.active {
    background-color: rgba(33, 150, 243, 0.8);
}

.status-badge.upcoming {
    background-color: rgba(255, 152, 0, 0.8);
}

.most-attended-content {
    padding: 1rem;
}

.most-attended-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0.75rem;
}

.event-date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.most-attended-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.most-attended-details {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.most-attended-location, .most-attended-count {
    margin-bottom: 0.25rem;
}

/* Geri Sayım Bileşeni */
.countdown-container {
    margin-bottom: 0.75rem;
}

.countdown-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-badge.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}

.countdown-badge i {
    color: #0ea5e9;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.countdown-badge.active i {
    color: #f59e0b;
}

.countdown-text {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.countdown-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.countdown-item strong {
    color: #1e40af;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 700;
}

.countdown-badge.active .countdown-item strong {
    color: #92400e;
}

.countdown-item small {
    font-size: 0.65rem;
    color: #64748b;
    text-transform: lowercase;
    margin-top: 2px;
}

.countdown-separator {
    color: #cbd5e1;
    font-weight: 600;
    margin: 0 2px;
}

.countdown-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.most-attended-btn {
    width: 100%;
    border-radius: 50px;
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

/* Kibar İncele butonu */
.most-attended-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(251, 191, 36, 0.35);
    position: relative;
    overflow: hidden;
    border: none;
    white-space: nowrap;
}

.most-attended-detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.most-attended-detail-btn:hover::before {
    left: 100%;
}

.most-attended-detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #111827;
}

.most-attended-detail-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.most-attended-detail-btn i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.most-attended-detail-btn:hover i {
    transform: scale(1.1);
}

/* Etkinlik Oluştur CTA */
.create-event-cta {
    background-color: var(--primary-color);
    color: white;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.create-event-cta h2 {
    font-weight: 600;
}

.create-event-cta .btn-light {
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.create-event-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
    background-color: #212529;
    color: rgba(255,255,255,0.7);
    padding-top: 3rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.25rem;
    color: var(--primary-color);
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
}

.copyright {
    color: rgba(255,255,255,0.5);
}

.bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.bottom-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.bottom-links a:hover {
    color: white;
}

/* Mobil Uyumluluk */
@media (max-width: 991.98px) {
    .slider-bg {
        height: 400px;
    }
    
    .event-title {
        font-size: 2.5rem;
    }
    
    .search-bar-wrapper .search-submit {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .slider-bg {
        height: 350px;
    }
    
    .slider-content {
        padding: 3rem 0;
    }
    
    .event-title {
        font-size: 2rem;
    }
    
    .search-container {
        margin-top: -1.5rem;
    }
    
    .search-bar-wrapper {
        padding: 1rem;
    }
    
    .search-bar-wrapper .search-submit {
        margin-top: 1rem;
    }
    
    .story-circle-img {
        width: 55px;
        height: 55px;
    }
    
    .bottom-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    /* Mobilde resim yükseklikleri */
    .event-card-image {
        height: 240px !important;
    }
    
    .most-attended-image {
        height: 240px !important;
    }
    
    .most-attended-category-badge {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .slider-bg {
        height: 300px;
    }
    
    .slider-content {
        padding: 2rem 0;
    }
    
    .event-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .event-date {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .event-location {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}