/* Profile Page Specific Styles */

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(245, 172, 55, 0.1);
}

.add-button {
    background: #F5AC37;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #0B0F17;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-button:hover {
    background: #E69A2A;
    transform: scale(1.05);
}

/* User Profile Section */
.user-profile {
    padding: 25px 0;
    border-bottom: 1px solid rgba(245, 172, 55, 0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.profile-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: #F5AC37;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Watch Status Toggle */
.watch-status-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.status-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

.status-toggle-btn:hover {
    background: rgba(245, 172, 55, 0.1);
    color: #F5AC37;
}

.status-toggle-btn.active {
    background: #F5AC37;
    color: #0B0F17;
}

.toggle-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.status-toggle-btn.active .toggle-count {
    background: rgba(11, 15, 23, 0.2);
    color: #0B0F17;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .profile-left {
        width: 100%;
        justify-content: flex-start;
    }

    .watch-status-toggle {
        align-self: stretch;
    }

    .status-toggle-btn {
        flex: 1;
        min-width: auto;
    }

    .profile-stats {
        flex-wrap: wrap;
        gap: 12px;
    }


}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover {
    background: rgba(245, 172, 55, 0.2);
    color: #F5AC37;
}

.filter-tab.active {
    background: #F5AC37;
    color: #0B0F17;
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.content-item {
    transition: transform 0.3s ease;
}

/* Content Poster */
.content-poster {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 2/3;
    margin-bottom: 8px;
}

.content-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-type {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #F5AC37;
    color: #0B0F17;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.watched-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.content-poster.watched::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Content Title */
.content-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}



/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .filter-tabs {
        margin: 0 -16px;
        padding: 20px 16px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .profile-info {
        gap: 20px;
    }
    
    .profile-left {
        gap: 10px;
    }
    
    .avatar-image {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .profile-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding-bottom: 40px;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }
    

    
    .add-button {
        width: 45px;
        height: 45px;
        font-size: 26px;
    }
}

/* Loading States */
.content-item.loading .content-poster img {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth transitions for filtering */
.content-item {
    transition: all 0.3s ease, transform 0.3s ease;
}

.content-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.8);
}

/* Loading and error states */
.loading-message, .error-message, .empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #8B949E;
    font-size: 16px;
    grid-column: 1 / -1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.loading-message {
    color: #F5AC37;
    background: rgba(245, 172, 55, 0.1);
}

.error-message {
    color: #F85149;
    background: rgba(248, 81, 73, 0.1);
}

.empty-message {
    color: #8B949E;
    background: rgba(139, 148, 158, 0.1);
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 40px auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.7;
}

.empty-state h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.empty-state p {
    color: #8B949E;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.empty-state code {
    background: rgba(245, 172, 55, 0.2);
    color: #F5AC37;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

/* Waitlist button */
.waitlist-button {
    background: #F5AC37;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    color: #0B0F17;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.waitlist-button:hover {
    background: #E69A2A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 172, 55, 0.3);
}