:root {
    --primary: #ee4943;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #f72585;
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #adb5bd;
    --dark-gray: #495057;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #ef233c;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 0;
}

.logo-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-gray);
    align-items: center;
  display: flex;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links .active {
    color: var(--primary);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: #eee;
}

.btn-outline:hover {
    background-color: var(--accent) !important;
    color: white !important;
}

.btn-accent {
    background-color: var(--accent);
    color: white !important;
}

.btn-accent:hover {
    color: white;
    background-color: --var(accnet);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/bg.png');
    background-position: 400px 0;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom:50px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Features Section */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--dark-gray);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.collection-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.collection-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.collection-info {
    padding: 1.2rem;
}

.collection-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.collection-stats {
    display: flex;
    justify-content: space-between;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-new {
    background-color: var(--success);
    color: white;
}

.badge-popular {
    background-color: var(--warning);
    color: white;
}

.badge-forum {
    background-color: var(--accent);
    color: white;
}

/* Premium Section */
.premium-section {
    padding: 4rem 0;
    text-align: center;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 300px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.price span {
    font-size: 1rem;
    color: var(--medium-gray);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li:before {
    content: "✓";
    color: var(--success);
    position: absolute;
    left: 0;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row; /* Keep horizontal layout */
        padding: 0.5rem 0; /* Reduce padding */
        align-items: center;
    }
    
    .logo {
        font-size: 1.4rem; /* Slightly smaller logo */
    }
    
    .nav-links {
        display: none; /* Hide by default on mobile */
        position: fixed;
        top: 60px; /* Below the header */
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-links.active {
        display: flex; /* Show when active */
    }
    
    /* Add hamburger menu */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        cursor: pointer;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--dark);
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
}

/* File Hosts Section */
.hosts-section {
    padding: 4rem 0;
    background-color: white;
}

.hosts-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hosts-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    font-size: 1rem;
}

.hosts-toggle i {
    transition: transform 0.3s ease;
}

.hosts-toggle.active i {
    transform: rotate(180deg);
}

.hosts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.hosts-grid.expanded {
    max-height: 2000px;
    padding: 1rem 0;
}

.host-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.host-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.host-card img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.host-card h3 {
    font-size: 0.8rem;
    text-align: center;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .hosts-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.collection-card img {
    width: 24px;
    height: 24px;
}

.collection-info-top {
    display: flex;
    justify-content: space-between;
}

.pricing-card > .btn-outline {
    color: var(--accent);
}

/* Latest Files Section */
.latest-files-section {
    padding: 4rem 0;
}

.file-search-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
}

.filter-options select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    background-color: white;
}

.files-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.files-list {
    max-height: 500px;
    overflow-y: auto;
}

.file-name-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    min-width: 0; /* Allows text overflow to work */
}

.file-item {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-type {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0; /* Prevents the type from shrinking */
}

.load-more-container {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid var(--light-gray);
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: var(--medium-gray);
}

@media (max-width: 768px) {
    .file-search-container {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .file-name {
        max-width: 100%;
    }
    .file-name-container {
        width: 100%;
    }
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* Prevents the button from shrinking */
}


.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
}


/* File Download Notice */
.file-download-notice {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.download-icon {
    font-size: 2rem;
    color: var(--accent);
}

.notice-content {
    flex-grow: 1;
}

.notice-content p {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.requested-filename {
    background-color: white;
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) / 2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filename-text {
    color: var(--dark);
    font-weight: 500;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-message {
    background-color: #fff5f5;
    border-left: 3px solid var(--danger);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: var(--danger);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.error-message p {
    margin-bottom: 0.5rem;
}

.error-message p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .file-download-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .filename-text {
        max-width: 250px;
    }
}

.files-load-init {
    text-align: center;
    padding: 2rem;
}

.loading-indicator {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    display: inline-block;
    vertical-align: middle;
}

.pay-methods {
    padding: 40px 0;
    text-align: center;
    background-color: #f9f9f9;
}

.pay-methods h3 {
    margin-bottom: 20px;
}

.pay-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pay-icons img {
    height: 40px;
    opacity: 1;
}
