/**
 * Selçuk Üniversitesi - Modern V1 Responsive Styles
 * Mobile-first responsive adjustments
 */

/* ==================== MOBILE HEADER ==================== */
@media (max-width: 1200px) {
    .header-container {
        padding: 10px 20px;
    }
    
    .logo-title {
        font-size: 22px;
    }
    
    .logo-subtitle {
        font-size: 13px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .header-btn-today,
    .header-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    /* HIZLI MENÜ YAZISI HER ZAMAN GÖRÜNÜR */
    .nav-quick-menu span {
        display: inline !important;
        white-space: nowrap !important;
    }
    
    .nav-quick-menu {
        min-width: 120px !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 992px) {
    /* Header Right hidden on tablet - AMA HIZLI MENÜ BUTONU GÖRÜNÜR */
    .header-right {
        display: none;
    }
    
    /* Header inner relative olmalı ki absolute positioning çalışsın */
    .header-inner {
        position: relative !important;
    }
    
    /* HIZLI MENÜ BUTONU - TABLET VE MOBİLDE HER ZAMAN GÖRÜNÜR - ÇOK GÜÇLÜ KURAL */
    .header-right .nav-quick-menu,
    .header-right-single .nav-quick-menu,
    .header-nav-row .nav-quick-menu,
    .nav-quick-menu,
    button.nav-quick-menu,
    #quickMenuBtn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 50px !important; /* Mobile toggle'dan önce */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        min-width: 100px !important;
        height: 40px !important;
        padding: 8px 12px !important;
        font-size: 9px !important;
        margin-left: 0 !important;
        z-index: 1002 !important;
        gap: 6px !important;
    }
    
    /* HIZLI MENÜ YAZISI HER ZAMAN GÖRÜNÜR - TABLET - ÇOK GÜÇLÜ KURAL */
    .header-right .nav-quick-menu span,
    .header-right-single .nav-quick-menu span,
    .header-nav-row .nav-quick-menu span,
    .nav-quick-menu span,
    button.nav-quick-menu span,
    #quickMenuBtn span {
        display: inline !important;
        white-space: nowrap !important;
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
        font-weight: 700 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Mobile toggle visible */
    .mobile-toggle {
        display: flex !important;
    }
    
    /* Mobile header adjustments */
    .header-inner {
        padding: 5px 0;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }
}

/* ==================== MOBILE MENU OVERLAY ==================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 60, 0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .mobile-menu-overlay {
        display: block;
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-logo img {
    width: 50px;
    height: 50px;
}

.mobile-menu-logo span {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.mobile-nav-links a i {
    width: 24px;
    text-align: center;
    color: var(--secondary);
}

/* ==================== MOBILE HERO ==================== */
@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-content {
        left: 5%;
        right: 5%;
        bottom: auto;
        top: 35%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-thumbs {
        display: none;
    }
    
    .hero-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15%;
    }
    
    .hero-scroll {
        bottom: 5%;
    }
    
    .hero-quick-links {
        position: relative;
        background: var(--primary);
        padding: 30px 5%;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        top: 30%;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-quick-item {
        flex: 0 0 calc(50% - 10px) !important;
        padding: 15px 10px;
    }
    
    .hero-quick-icon {
        width: 40px;
        height: 40px;
    }
    
    .hero-quick-icon i {
        font-size: 18px;
    }
    
    .hero-quick-text {
        font-size: 11px;
    }
}

/* ==================== MOBILE SECTIONS ==================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    /* News Section */
    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .news-section-title {
        font-size: 1.5rem;
    }
    
    .news-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .news-tab-link {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .news-tab-link span {
        display: none;
    }
    
    .news-tab-link i {
        font-size: 20px;
    }
    
    .news-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-featured-slider {
        min-height: 350px;
    }
    
    .news-grid-wrapper {
        grid-template-columns: 1fr;
    }
    
    /* Announcements Section */
    .announcements-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .announcements-title {
        font-size: 1.5rem;
    }
    
    .announcements-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .announcements-tab-link {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .announcements-tab-link span {
        display: none;
    }
    
    .announcements-slider-wrapper {
        padding: 0 35px;
    }
    
    .announcement-card {
        flex: 0 0 100% !important;
    }
    
    /* Stats Section */
    .stats-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid-all {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card-top {
        padding: 20px 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* ==================== MOBILE FOOTER ==================== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand {
        padding-right: 0;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==================== QUICK MENU MOBILE ==================== */
@media (max-width: 768px) {
    .quick-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .quick-menu-item {
        padding: 20px 10px;
    }
    
    .quick-menu-icon {
        width: 50px;
        height: 50px;
    }
    
    .quick-menu-name {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .quick-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== MEGA MENU MOBILE ==================== */
@media (max-width: 992px) {
    .mega-menu-wrapper {
        display: none;
    }
}

/* ==================== SEARCH OVERLAY MOBILE ==================== */
@media (max-width: 768px) {
    .search-overlay input {
        font-size: 16px !important;
        padding: 16px 50px 16px 20px !important;
    }
    
    .search-overlay h2 {
        font-size: 1.5rem !important;
    }
}

/* ==================== SLICK SLIDER MOBILE ==================== */
@media (max-width: 768px) {
    .slick-prev,
    .slick-next {
        width: 35px;
        height: 35px;
    }
    
    .slick-prev:before,
    .slick-next:before {
        font-size: 14px;
    }
    
    .slick-prev {
        left: -10px;
    }
    
    .slick-next {
        right: -10px;
    }
}

/* ==================== CALENDAR MOBILE ==================== */
@media (max-width: 768px) {
    .takvim {
        padding: 15px !important;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2rem;
    }
    
    .fc .fc-button {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ==================== TAB PILLS MOBILE ==================== */
@media (max-width: 768px) {
    .newTabsList.nav-pills {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .newTabsList.nav-pills .nav-link {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .newTabsList.nav-pills .nav-link span {
        display: block;
        font-size: 11px;
    }
}

/* ==================== TOUCH IMPROVEMENTS ==================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link,
    .header-btn,
    .header-icon-btn,
    .quick-menu-item,
    .hero-quick-item {
        min-height: 44px;
    }
    
    /* Remove hover effects that don't work well on touch */
    .boxs.project_widget:hover,
    .news-grid-card:hover,
    .announcement-card:hover,
    .stat-card-top:hover {
        transform: none;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header-modern,
    .footer-modern,
    .hero-quick-links,
    .quick-menu-overlay,
    .scroll-top,
    .mobile-toggle {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: auto;
    }
    
    .section {
        padding: 30px 0;
    }
}
