/**
 * Browse Projects - Streaming Style CSS
 * Modern streaming platform design for project browsing
 */

/* ===== BROWSE PAGE SPECIFIC STYLES ===== */
.browse-main {
    background-color: #141414;
    color: #fff;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
}

/* ===== HERO BILLBOARD ===== */
.hero-billboard {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    ),
    linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 60px 80px;
    max-width: 50%;
}

.hero-badge {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.content-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: capitalize;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffd700;
}

.year {
    color: #b3b3b3;
    font-weight: 500;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #e5e5e5;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-hero {
    padding: 15px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-hero.btn-primary {
    background: var(--gray-200);
    color: #000;
}

.btn-hero.btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.btn-hero.btn-secondary {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    min-width: 50px;
    padding: 15px;
}

.btn-hero.btn-secondary:hover {
    background: rgba(109, 109, 110, 0.9);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* ===== BROWSE CONTROLS ===== */
.browse-controls {
    padding: 0 60px 40px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(20, 20, 20, 0.8) 100%
    );
}

.browse-header {
    text-align: center;
    margin-bottom: 40px;
}

.browse-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
}

.browse-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin: 0;
}

.controls-container {
    max-width: 1200px;
    margin: 0 auto;
}

.primary-search {
    position: relative;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.primary-search input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-size: 1.1rem;
    background: rgba(64, 64, 64, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.primary-search input:focus {
    border-color: #e50914;
    background: rgba(64, 64, 64, 1);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.primary-search input::placeholder {
    color: #b3b3b3;
}

.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e50914;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: #b8070f;
    transform: translateY(-50%) scale(1.1);
}

/* ===== ADVANCED FILTERS ===== */
.advanced-filters {
    text-align: center;
}

.filters-toggle {
    background: rgba(64, 64, 64, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.filters-toggle:hover {
    background: rgba(64, 64, 64, 1);
    border-color: rgba(255, 255, 255, 0.4);
}

.filters-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
}

.filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(28, 28, 28, 0.95);
    border-radius: 12px;
    margin-top: 20px;
    backdrop-filter: blur(20px);
}

.filters-panel.active {
    max-height: 400px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item select {
    background: rgba(64, 64, 64, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-item select:focus {
    border-color: #e50914;
    background: rgba(64, 64, 64, 1);
}

.filter-item select option {
    background: #2d2d2d;
    color: #fff;
    padding: 10px;
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-filter {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-apply {
    background: #e50914;
    color: #fff;
}

.btn-apply:hover {
    background: #b8070f;
    transform: scale(1.05);
}

.btn-reset {
    background: transparent;
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-reset:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== CONTENT RESULTS ===== */
.content-results {
    padding: 60px;
    background: #141414;
}

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

.results-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.results-count {
    font-size: 1rem;
    color: #b3b3b3;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #b3b3b3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-toggle:hover,
.view-toggle.grid-active {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Removed list-view and detailed-view - keeping only grid view */

/* ===== CONTENT CARDS ===== */
.content-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1c1c1c;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content-card:hover {
    z-index: 10;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #252525;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.3s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.3) 80%,
        transparent 100%
    );
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0px;
    pointer-events: none;
}

.card-overlay > * {
    pointer-events: auto;
}

.content-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.85) 50%,
        rgba(0, 0, 0, 0.4) 80%
    );
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.content-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-card {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #000;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-card.btn-primary {
    background: var(--gray-200);
    color: #000;
    width: 120px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 8px;
}

.btn-card.btn-secondary {
    background: rgba(109, 109, 110, 0.8);
    color: #fff;
}

.btn-card:hover {
    transform: scale(1.1);
}

.btn-card.btn-primary:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.card-info {
    margin-top: auto;
    position: relative;
    padding: 5px;
}

.card-rating {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
    line-height: 1.2;
}

.card-creator {
    font-size: 0.85rem;
    color: #b3b3b3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-creator .content-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
}

.card-meta {
    display: none;
}

.card-description {
    font-size: 0.85rem;
    color: #e5e5e5;
    margin: 8px 0;
    line-height: 1.3;
}

.card-stats {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-top: 8px;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Removed list-view and detailed-view styles - keeping only grid view */

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #b3b3b3;
}

.empty-state i {
    font-size: 4rem;
    color: #404040;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 10px;
}

.empty-state p {
    font-size: 1rem;
    margin: 0 0 30px;
    line-height: 1.5;
}

/* ===== LOADING STATE ===== */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    font-size: 2.5rem;
    color: #e50914;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin: 0;
}

/* ===== LOAD MORE ===== */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.btn-load-more {
    background: rgba(64, 64, 64, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.btn-load-more:hover {
    background: rgba(64, 64, 64, 1);
    border-color: #e50914;
    color: #e50914;
    transform: scale(1.05);
}

.btn-load-more:hover .fa-chevron-down {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .content-results {
        padding: 40px 30px;
    }
    
    .browse-controls {
        padding: 0 30px 40px;
    }
    
    .hero-content {
        padding: 0 30px 60px;
        max-width: 60%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .browse-main {
        padding-top: 60px;
    }

    .hero-billboard {
        height: 65vh;
        min-height: 400px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        display: none;
    }

    .hero-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 0.95rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn-hero {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .browse-controls {
        padding: 0 20px 30px;
    }

    .browse-header {
        margin-bottom: 24px;
    }

    .browse-title {
        font-size: 1.8rem;
    }

    .browse-subtitle {
        font-size: 1rem;
    }

    .primary-search {
        margin-bottom: 20px;
        max-width: 100%;
    }

    .primary-search input {
        padding: 14px 54px 14px 20px;
        font-size: 1rem;
        border-radius: 30px;
        width: 70%;
    }

    .search-submit {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        right: 6px;
    }

    /* Filters closed by default on mobile */
    .filters-panel.active {
        max-height: 600px;
    }

    .filters-toggle {
        width: 100%;
        padding: 14px 20px;
        justify-content: center;
        font-size: 0.95rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-item label {
        font-size: 0.9rem;
    }

    .filter-item select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .filter-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-filter {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }

    .results-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        text-align: center;
    }

    .results-info {
        flex-direction: column;
        gap: 8px;
    }

    .view-options {
        justify-content: center;
    }

    .view-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .content-results {
        padding: 30px 20px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .content-card {
        border-radius: 10px;
    }

    .card-image {
        aspect-ratio: 2/3;
    }

    .card-overlay { 

        padding: 0px; 
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 40%,
            rgba(0, 0, 0, 0.4) 70%,
            transparent 100%
        ) !important;
    }

    /* Always show card info on mobile - no hover */
    .card-info {
        padding: 5px;
        opacity: 1 !important;
        transform: none !important;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-creator {
        font-size: 0.8rem;
    }

    .card-meta {
        font-size: 0.75rem;
    }

    .card-stats {
        font-size: 0.75rem;
        display: none;
    }

    /* Hide action buttons on mobile - tap card to open */
    .card-actions {
        display: none !important;
    }

}

@media (max-width: 480px) {
    .browse-main {
        padding-top: 56px;
    }

    .hero-billboard {
        height: 55vh;
        min-height: 350px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 16px 30px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-meta {
        gap: 10px;
        font-size: 0.85rem;
    }

    .content-type {
        padding: 3px 8px;
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .btn-hero {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: 90px;
    }

    .browse-controls {
        padding: 0 16px 24px;
    }

    .browse-header {
        margin-bottom: 20px;
    }

    .browse-title {
        font-size: 1.5rem;
    }

    .browse-subtitle {
        font-size: 0.9rem;
    }

    .primary-search {
        max-width: 100%;
    }

    .primary-search input {
        padding: 12px 50px 12px 16px;
        font-size: 0.95rem;
        border-radius: 25px;
        width: 60%;
    }

    .search-submit {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        right: 5px;
    }

    .filters-toggle {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .filter-grid {
        gap: 14px;
    }

    .filter-item label {
        font-size: 0.85rem;
    }

    .filter-item select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .btn-filter {
        padding: 12px;
        font-size: 0.95rem;
    }

    .content-results {
        padding: 24px 16px;
    }

    .results-info h3 {
        font-size: 1.2rem;
    }

    .results-count {
        font-size: 0.85rem;
    }

    .view-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
        gap: 12px;
    }

    .card-image {
        aspect-ratio: 2/3;
    }

    .card-overlay { 
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%
        ) !important;
    }

    /* Always show card info on mobile - no hover */
    .card-info {
        opacity: 1 !important;
        transform: none !important;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-creator {
        font-size: 0.75rem;
    }

    .card-meta {
        font-size: 0.7rem;
    }

    .card-stats {
        font-size: 0.7rem;
        display: none;
    }

    /* Hide action buttons on mobile */
    .card-actions {
        display: none !important;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}