/* Academic Detail Page Styles */
.academic-detail {
    min-height: 100vh;
    background: linear-gradient(120deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0 0 2rem 0;
}

/* Banner Styles */
.academic-banner {
    height: 300px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

    .academic-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(28, 69, 139, 0.1), transparent);
        z-index: 1;
    }

.academic-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.academic-banner__title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    transform: translateY(20px);
    opacity: 0;
    animation: titleFadeIn 0.8s ease forwards;
}

@keyframes titleFadeIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Content Section */
.academic-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Card Styles */
.academic-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    isolation: isolate;
}

    .academic-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--selcuk-blue);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        transform-origin: bottom;
    }

    .academic-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(28, 69, 139, 0.1), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .academic-card:hover {
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-4px);
        border-color: var(--selcuk-blue);
    }

        .academic-card:hover::before {
            transform: scaleY(1);
        }

        .academic-card:hover::after {
            opacity: 1;
        }

.academic-card__content {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.academic-card__title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.academic-card:hover .academic-card__title {
    color: var(--selcuk-blue);
}

.academic-card__arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--selcuk-blue);
    border-radius: 50%;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

    .academic-card__arrow::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .academic-card__arrow i {
        font-size: 0.9rem;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
    }

.academic-card:hover .academic-card__arrow {
    background-color: var(--selcuk-blue-hover);
    box-shadow: 0 4px 12px rgba(28, 69, 139, 0.4);
    transform: scale(1.1);
}

    .academic-card:hover .academic-card__arrow::before {
        opacity: 1;
    }

    .academic-card:hover .academic-card__arrow i {
        transform: translateX(4px);
    }

/* Loading Animation */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.academic-card {
    animation: cardFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

/* Hover Effects for Better Performance */
@media (hover: hover) {
    .academic-card:hover {
        transform: translateY(-4px);
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .academic-card:active {
        transform: scale(0.98);
    }

    .academic-card__arrow {
        background-color: var(--selcuk-blue-hover);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .academic-content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .academic-banner {
        height: 200px;
    }

    .academic-banner__title {
        font-size: 2rem;
    }

    .academic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .academic-card__content {
        padding: 1.25rem;
    }

    .academic-card__arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .academic-content {
        padding: 0 1rem;
    }

    .academic-banner__title {
        font-size: 1.75rem;
    }

    .academic-card__title {
        font-size: 1rem;
    }

    .academic-card__arrow {
        width: 28px;
        height: 28px;
    }
}

/* Print Styles */
@media print {
    .academic-banner {
        height: 200px;
        margin-bottom: 2rem;
    }

    .academic-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .academic-card__arrow {
        display: none;
    }
}




/* Search Styles */
.academic-search {
    margin-bottom: 2rem;
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.academic-search__wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .academic-search__wrapper:focus-within {
        box-shadow: 0 6px 24px rgba(28, 69, 139, 0.15);
    }

.academic-search__input {
    width: 100%;
    padding: 1rem 3rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
    transition: all 0.3s ease;
    background: transparent;
}

    .academic-search__input:focus {
        outline: none;
        border-color: var(--selcuk-blue);
    }

    .academic-search__input::placeholder {
        color: #9ca3af;
    }

.academic-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.academic-search__wrapper:focus-within .academic-search__icon {
    color: var(--selcuk-blue);
}

.academic-search__clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.5rem;
    color: #9ca3af;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .academic-search__clear:hover {
        opacity: 1;
        color: #ef4444;
    }

/* No Result Styles */
.academic-no-result {
    text-align: center;
    padding: 3rem 1rem;
}

.academic-no-result__content {
    max-width: 300px;
    margin: 0 auto;
}

.academic-no-result__icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.academic-no-result__text {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
}

/* Animation for Cards */
.academic-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .academic-card.filtered-out {
        display: none;
    }

/* Responsive Search Styles */
@media (max-width: 768px) {
    .academic-search {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .academic-search__input {
        padding: 0.875rem 2.75rem;
        font-size: 0.95rem;
    }

    .academic-search__icon,
    .academic-search__clear {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .academic-search__input {
        padding: 0.75rem 2.5rem;
        font-size: 0.9rem;
    }

    .academic-no-result__icon {
        font-size: 2rem;
    }

    .academic-no-result__text {
        font-size: 1rem;
    }
}
