@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #f8fafc;
}

/* Smooth transitions */
a, button {
    transition: all 0. 3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Smooth fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

. fade-in-up {
    animation: fadeInUp 0. 6s ease-out;
}

. fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }

/* Button primary style */
.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stagger animation */
.stagger-item {
    animation: fadeInUp 0.6s ease-out;
}

. stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0. 1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }

/* Navigation styles */
nav {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1f2937;
}

/* Container */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header section */
. page-header {
    background: white;
    padding: 3rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

. page-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Search input */
.search-box {
    background: white;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

#search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    background: white;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#search-input::placeholder {
    color: #9ca3af;
}

/* Files grid */
#files-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    #files-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
}

/* File card styles */
.file-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.file-card-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
}

.file-card-header . icon {
    font-size: 3rem;
}

.file-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.file-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 56px;
}

.file-card-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.file-card-footer {
    margin-top: auto;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.download-btn:hover {
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.pagination button {
    padding: 10px 24px;
    background: white;
    border: 1px solid #d1d5db;
    color: #111827;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

. pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    color: #4b5563;
    font-weight: 600;
    padding: 8px 24px;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

/* Footer */
footer {
    background: #111827;
    color: white;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

footer h4 {
    font-weight: 700;
    margin-bottom: 12px;
}

footer p {
    color: #9ca3af;
}

footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: #9ca3af;
}

footer ul li a:hover {
    color: white;
}

. footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

. footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    text-align: center;
    color: #9ca3af;
}

. footer-bottom p {
    margin: 8px 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
. mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

. gap-8 {
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    . page-header h1 {
        font-size: 1.875rem;
    }

    . search-box {
        padding: 1.5rem 1rem;
    }

    #files-container {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

}
