/* Papers Page Specific Styles */

/* Page Hero */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #133a5e 25%, #1b5c7d 50%, #20a39e 75%, #2dd4bf 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

.page-hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(29, 78, 216, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(32, 163, 158, 0.3) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.page-hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 15px 50px rgba(45, 212, 191, 0.4);
    animation: float 3s ease-in-out infinite;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.page-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
}

/* Search & Filter Section */
.search-filter-section {
    padding: 60px 0;
    background: #0a1628;
    position: relative;
    z-index: 2;
}

.search-filter-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #20a39e;
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 55px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(32, 163, 158, 0.1));
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2dd4bf;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(32, 163, 158, 0.15));
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.2);
}

.search-box input::placeholder {
    color: #a0a0a0;
}

.clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 212, 191, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #2dd4bf;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: #2dd4bf;
    color: white;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(32, 163, 158, 0.1));
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 25px;
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: #2dd4bf;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(32, 163, 158, 0.2));
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    border-color: #2dd4bf;
    color: white;
    box-shadow: 0 5px 20px rgba(45, 212, 191, 0.4);
}

/* Tags Filter */
.tags-filter {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.05), rgba(32, 163, 158, 0.05));
    border: 2px solid rgba(45, 212, 191, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
}

.tags-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tags-filter-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2dd4bf;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-tags {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 20px;
    color: #2dd4bf;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-tags:hover {
    background: rgba(45, 212, 191, 0.1);
    border-color: #2dd4bf;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-filter {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(45, 212, 191, 0.2);
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.tag-filter:hover {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
}

.tag-filter.active {
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    border-color: #2dd4bf;
    color: white;
    box-shadow: 0 5px 15px rgba(45, 212, 191, 0.3);
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(45, 212, 191, 0.05);
    border-radius: 15px;
    margin-top: 20px;
}

.active-filters-label {
    font-weight: 600;
    color: #2dd4bf;
    font-size: 0.95rem;
}

.active-filters-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.active-filter-tag button:hover {
    transform: scale(1.2);
}

/* Papers Section */
.papers-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0a1628 0%, #0d1f35 100%);
    position: relative;
    z-index: 2;
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-info p {
    color: #e0e0e0;
    font-size: 1rem;
}

.results-info strong {
    color: #2dd4bf;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    color: #e0e0e0;
    font-weight: 500;
}

.sort-dropdown select {
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(32, 163, 158, 0.1));
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #2dd4bf;
}

/* Papers Grid */
.papers-grid {
    display: flex;
    gap: 35px;
    margin-bottom: 60px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 30px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar styling */
.papers-grid::-webkit-scrollbar {
    height: 10px;
}

.papers-grid::-webkit-scrollbar-track {
    background: rgba(29, 78, 216, 0.1);
    border-radius: 10px;
}

.papers-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #20a39e, #2dd4bf);
    border-radius: 10px;
}

.papers-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #2dd4bf, #20a39e);
}

/* Paper Card */
.paper-card {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(32, 163, 158, 0.08));
    border: 2px solid rgba(45, 212, 191, 0.2);
    border-radius: 25px;
    padding: 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-width: 380px;
    max-width: 380px;
    flex-shrink: 0;
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.1), transparent);
    transition: left 0.6s ease;
}

.paper-card:hover::before {
    left: 100%;
}

.paper-card:hover {
    transform: translateY(-10px);
    border-color: #2dd4bf;
    box-shadow: 0 20px 50px rgba(45, 212, 191, 0.3);
}

.paper-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.paper-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.paper-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #a0a0a0;
    font-size: 0.85rem;
}

.paper-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2dd4bf;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.paper-excerpt {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.paper-tag {
    padding: 6px 12px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 15px;
    color: #2dd4bf;
    font-size: 0.8rem;
    font-weight: 500;
}

.paper-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(45, 212, 191, 0.2);
}

.paper-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #a0a0a0;
}

.paper-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.paper-stats i {
    color: #20a39e;
}

.paper-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.paper-read-btn:hover {
    gap: 12px;
    box-shadow: 0 5px 20px rgba(45, 212, 191, 0.4);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 4rem;
    color: #20a39e;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.no-results p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 60px;
}

.pagination-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(32, 163, 158, 0.1));
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 25px;
    color: #e0e0e0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #2dd4bf;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(32, 163, 158, 0.2));
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 10px;
}

.pagination-page {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(32, 163, 158, 0.1));
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 50%;
    color: #e0e0e0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-page:hover {
    border-color: #2dd4bf;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(32, 163, 158, 0.2));
}

.pagination-page.active {
    background: linear-gradient(135deg, #20a39e, #2dd4bf);
    border-color: #2dd4bf;
    color: white;
    box-shadow: 0 5px 20px rgba(45, 212, 191, 0.4);
}

/* Submit CTA */
.submit-cta {
    padding: 80px 0;
    background: #0a1628;
    position: relative;
    z-index: 2;
}

.submit-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 60px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.15), rgba(32, 163, 158, 0.15));
    border: 2px solid rgba(45, 212, 191, 0.3);
    border-radius: 30px;
    gap: 40px;
    flex-wrap: wrap;
}

.submit-cta-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.submit-cta-text p {
    color: #e0e0e0;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .papers-grid {
        gap: 20px;
    }

    .paper-card {
        min-width: 320px;
        max-width: 320px;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .submit-cta-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .page-hero {
        min-height: 40vh;
        padding: 120px 0 80px;
    }
}

@media (max-width: 480px) {
    .paper-card {
        min-width: 280px;
        max-width: 280px;
    }

    .search-box input {
        padding: 16px 50px 16px 45px;
        font-size: 0.9rem;
    }

    .tags-filter {
        padding: 20px;
    }

    .paper-card {
        padding: 25px;
    }

    .pagination-pages {
        gap: 5px;
    }

    .pagination-page {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
