/**
 * Mood Archive Page Styles
 * Mod arşiv sayfası stilleri
 * 
 * Bağımlılıklar:
 * - CSS Variables from main theme
 * - FontAwesome icons
 * - Poppins font
 * - AOS animation library (optional)
 */

/* ===================================
   MOOD ARCHIVE MAIN
   =================================== */

.mood-archive-main {
    background: var(--homepage-bg, #f8f9fa);
    min-height: 100vh;
    padding: 2rem 0;
    margin-top: var(--header-height, 80px); /* Header yüksekliği kadar margin */
}

.mood-archive-main .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   MOOD HEADER
   =================================== */

.mood-header {
    background: linear-gradient(135deg, #e50914, #f40612);
    color: white;
    border-radius: 25px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 50px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
}

.mood-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.mood-header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.mood-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: relative;
}

/* Mood ikonları için özel düzeltmeler */
.mood-icon .fas,
.mood-icon .far,
.mood-icon .fab {
    font-size: 2.5rem !important;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block !important;
    line-height: 1 !important;
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 6 Brands', sans-serif !important;
    font-weight: 900 !important;
}

/* Mood ikonları için fallback */
.mood-icon[data-mood="romantic"] .fas::before {
    content: "\f004"; /* heart */
}

.mood-icon[data-mood="happy"] .fas::before {
    content: "\f118"; /* smile */
}

.mood-icon[data-mood="dramatic"] .fas::before {
    content: "\f005"; /* star */
}

.mood-icon[data-mood="thrilling"] .fas::before {
    content: "\f06d"; /* fire */
}

.mood-icon[data-mood="relaxing"] .fas::before {
    content: "\f185"; /* sun */
}

.mood-icon[data-mood="mysterious"] .fas::before {
    content: "\f06e"; /* eye */
}

.mood-icon[data-mood="inspiring"] .fas::before {
    content: "\f0eb"; /* lightbulb */
}

.mood-icon[data-mood="funny"] .fas::before {
    content: "\f1b3"; /* smile */
}

.mood-icon[data-mood="emotional"] .fas::before {
    content: "\f004"; /* heart */
}

.mood-icon[data-mood="adventurous"] .fas::before {
    content: "\f135"; /* rocket */
}

/* Mood info düzeni */
.mood-info {
    flex: 1;
}

.mood-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mood-description {
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    line-height: 1.6;
}

.mood-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.content-count i {
    font-size: 1.2rem;
}

/* ===================================
   MOOD NAVIGATION
   =================================== */

.mood-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.back-home i {
    font-size: 1.2rem;
}

.mood-selector {
    position: relative;
}

.mood-selector select {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.mood-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.mood-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.mood-selector select option {
    background: #333;
    color: white;
    padding: 1rem;
}

/* ===================================
   CONTENT CONTROLS
   =================================== */

.content-controls {
    margin-bottom: 2rem;
}

.sort-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover {
    border-color: #e50914;
    color: #e50914;
    transform: translateY(-2px);
}

.sort-btn.active {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

.sort-btn i {
    font-size: 1rem;
}

/* ===================================
   CONTENT GRID
   =================================== */

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.content-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.content-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-item:hover .content-thumbnail img {
    transform: scale(1.1);
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(229, 9, 20, 0.8), rgba(244, 6, 18, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-item:hover .content-overlay {
    opacity: 1;
}

.play-button {
    background: white;
    color: #e50914;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: #e50914;
    color: white;
}

.content-details {
    padding: 1.5rem;
}

.content-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #333;
    line-height: 1.4;
}

.content-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.content-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.content-meta i {
    font-size: 0.8rem;
}

.content-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.action-btn:hover {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

.action-btn.primary {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

.action-btn.primary:hover {
    background: #f40612;
    border-color: #f40612;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-numbers {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.page-numbers:hover {
    border-color: #e50914;
    color: #e50914;
    transform: translateY(-2px);
}

.page-numbers.current {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

.page-numbers.prev,
.page-numbers.next {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: #e50914;
    border-color: #e50914;
    color: white;
}

/* ===================================
   EMPTY STATE
   =================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.empty-state .btn {
    background: #e50914;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.empty-state .btn:hover {
    background: #f40612;
    transform: translateY(-2px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .mood-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .mood-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .mood-title {
        font-size: 2.5rem;
    }
    
    .mood-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mood-archive-main {
        padding: 1rem 0;
        margin-top: calc(var(--header-height, 80px) + 1rem);
    }
    
    .mood-archive-main .container {
        padding: 0 15px;
    }
    
    .mood-header {
        padding: 1.5rem 1rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .mood-title {
        font-size: 2rem;
    }
    
    .mood-description {
        font-size: 1rem;
    }
    
    .mood-icon {
        width: 80px;
        height: 80px;
        font-size: 3rem;
    }
    
    .mood-icon .fas,
    .mood-icon .far,
    .mood-icon .fab {
        font-size: 2rem !important;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sort-options {
        justify-content: center;
    }
    
    .sort-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        min-width: 40px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mood-header {
        padding: 1rem;
    }
    
    .mood-title {
        font-size: 1.8rem;
    }
    
    .mood-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .mood-icon .fas,
    .mood-icon .far,
    .mood-icon .fab {
        font-size: 1.5rem !important;
    }
    
    .content-details {
        padding: 1rem;
    }
    
    .content-title {
        font-size: 1.1rem;
    }
    
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-item {
    animation: fadeInUp 0.6s ease-out;
}

.content-item:nth-child(2) {
    animation-delay: 0.1s;
}

.content-item:nth-child(3) {
    animation-delay: 0.2s;
}

.content-item:nth-child(4) {
    animation-delay: 0.3s;
}

.content-item:nth-child(5) {
    animation-delay: 0.4s;
}

.content-item:nth-child(6) {
    animation-delay: 0.5s;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.sort-btn:focus,
.action-btn:focus,
.page-numbers:focus,
.back-home:focus,
.mood-selector select:focus {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .mood-header,
    .content-controls,
    .pagination,
    .action-btn {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .content-item {
        break-inside: avoid;
    }
}
