/* =============================================
   MEDIA PAGES - ANA LAYOUT'A UYGUN TASARIM
   ============================================= */

/* Hero Section - Ana layout stiline uygun */
.media-hero-section {
    background: linear-gradient(to right, var(--bg-white), #f8f9fa);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.media-hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.05), transparent 70%);
    z-index: 0;
}

.categories-hero-section {
    background: var(--bg-light);
    padding: 4rem 0;
    position: relative;
}

.hero-content {
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.stat-divider {
    width: 2px;
    height: 30px;
    background: var(--border-color);
}

/* Hero İkonları */
.hero-icon,
.hero-video-icon,
.hero-camera-icon {
    text-align: center;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon i,
.hero-video-icon i,
.hero-camera-icon i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* Back Button */
.back-button-section {
    padding: 0 0 2rem;
}

.btn-back {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Category Info Card */
.category-info-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

/* Grid Sections */
.media-grid-section,
.categories-grid-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.media-grid,
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Media Cards - Ana layout stiline uygun */
.media-item {
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.media-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.media-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: var(--bg-white);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.08);
}

/* Video Play Button */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.play-button {
    display: contents;
}

.media-card:hover .play-overlay {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
}

/* Card Overlay */
.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.media-card:hover .media-overlay {
    transform: translateY(0);
}

.media-info {
    color: white;
}

.media-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.media-category {
    font-size: 0.9rem;
    opacity: 0.8;
}

.media-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Card Content */
.media-card-content {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
}

.media-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card-category {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
}

.media-card-category:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
}

/* Category Cards */
.category-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card-inner {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover .category-card-inner {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-count {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.category-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-arrow {
    margin-top: 1rem;
    color: var(--primary-color);
}

/* Modal */
.media-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.media-modal .modal-header {
    background: linear-gradient(to right, var(--bg-light), #f8f9fa);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 1.5rem;
}

.modal-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.modal-category {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.modal-category:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
}

.media-modal .modal-body {
    padding: 0;
    background: #000;
    position: relative;
}

.media-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.modal-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.video-player iframe,
.video-player video {
    width: 100%;
    height: 60vh;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.media-modal .modal-footer {
    background: linear-gradient(to right, var(--bg-light), #f8f9fa);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.02), rgba(var(--primary-rgb), 0.05));
    border-radius: 16px;
}

.empty-state-content {
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-rgb), 0.7));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Loading states for dynamic content */
.loading-skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #ececec 30%, #f5f5f5 50%, #ececec 70%);
    background-size: 200% 100%;
    animation: shimmer-bg 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.loading-skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.6) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.8s infinite;
    z-index: 1;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes shimmer-bg {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.media-thumbnail.loading-skeleton {
    height: 280px;
}

.media-card-content.loading-skeleton {
    height: 80px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .hero-icon,
    .hero-video-icon,
    .hero-camera-icon {
        height: 150px;
    }
    
    .hero-icon i,
    .hero-video-icon i,
    .hero-camera-icon i {
        font-size: 4rem;
    }
    
    .media-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .media-modal .modal-dialog {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .media-hero-section {
        padding: 2.5rem 0 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .media-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .media-grid-section,
    .categories-grid-section {
        padding: 2rem 0;
    }
    
    .category-info-card {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
    
    .media-thumbnail {
        height: 220px;
    }
    
    .video-player iframe,
    .video-player video {
        height: 50vh;
    }
    
    .empty-state-content {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .empty-state-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .media-hero-section {
        padding: 2rem 0 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-icon i,
    .hero-video-icon i,
    .hero-camera-icon i {
        font-size: 3rem;
    }
    
    .media-thumbnail {
        height: 200px;
    }
    
    .play-overlay {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .category-card-inner {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .media-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-info-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .media-card {
        border-radius: 12px;
    }
    
    .media-modal .modal-content {
        border-radius: 12px;
    }
    
    .media-modal .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .video-player iframe,
    .video-player video {
        height: 40vh;
    }
    
    .media-viewer {
        min-height: 40vh;
    }
    
    .empty-state {
        padding: 3rem 0;
    }
}