/**
 * ExcelDepo - Premium Modern Homepage Design
 * HER SECTION FARKLI CARD YAPISI! HER SECTION FARKLI RENK!
 */

/* ===== Hero Section ===== */
.hero {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2B542C;
    position: relative;
    overflow: hidden;
}

html.dark .hero {
    background: #0a0a0a !important;
}

.hero .container {
    width: 100%;
}

.hero .hero-title,
.hero .hero-subtitle,
.hero .stat-number,
.hero .stat-label {
    color: #ffffff;
}

.hero .hero-title .highlight {
    background: #DFF0D8 !important;
    color: #2B542C !important;
    padding: 4px 16px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    font-weight: 900 !important;
}

html.dark .hero .hero-title .highlight {
    background: #ffffff !important;
    color: #000000 !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px;
    padding: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html.dark .search-box {
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 0.875rem 1.25rem;
    font-size: 1.0625rem;
    color: #1e293b;
    outline: none;
    font-weight: 500;
}

html.dark .search-input {
    color: #000000 !important;
}

.search-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #2B542C;
    color: #ffffff;
    border: none !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

html.dark .search-btn {
    background: #000000 !important;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-icon {
    font-size: 3.5rem !important;
    margin-bottom: 1rem;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    transition: transform 0.6s ease-in-out;
}

.stat-item:hover .stat-icon {
    transform: rotate(360deg);
}

.stat-number {
    font-size: 2.25rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SECTION HEADERS - BIG & BOLD ===== */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem !important;
    font-weight: 900 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1rem !important;
}

.section-title i {
    font-size: 2rem !important;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem !important;
    }
}

.section-subtitle {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: var(--color-text-secondary) !important;
}

/* ===== ALTERNATING BACKGROUNDS ===== */
.section:nth-child(even) {
    background: var(--color-bg) !important;
}

.section:nth-child(odd) {
    background: var(--color-bg-secondary) !important;
}

html.dark .section:nth-child(even) {
    background: #000000 !important;
}

html.dark .section:nth-child(odd) {
    background: #0a0a0a !important;
}

/* ===== CATEGORIES SECTION - VERTICAL CARDS WITH TOP STRIPE ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2.5rem 2rem;
    background: var(--color-bg);
    border: 2px solid var(--color-border) !important;
    border-radius: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    opacity: 0;
}

.category-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 12px 40px rgba(33, 115, 70, 0.12) !important;
    transform: translateY(-4px);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px !important;
    height: 80px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(33, 115, 70, 0.1), rgba(33, 115, 70, 0.05));
    border-radius: 20px;
    font-size: 2.5rem !important;
}

html.dark .category-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.category-info {
    width: 100%;
}

.category-name {
    font-size: 1.375rem !important;
    font-weight: 900 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
}

.category-count {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
}

html.dark .category-count {
    color: #ffffff !important;
}

/* ===== FEATURED FILES - LARGE CARDS WITH RADIAL GLOW ===== */
.files-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .files-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .files-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.file-card {
    position: relative;
    background: var(--color-bg) !important;
    border: 2px solid var(--color-border) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.file-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(33, 115, 70, 0.08), transparent);
    pointer-events: none;
}

.file-card:hover {
    border-color: var(--color-primary) !important;
    box-shadow: 0 16px 48px rgba(33, 115, 70, 0.12) !important;
    transform: translateY(-4px);
}

.file-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1.25rem !important;
}

.file-icon {
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(33, 115, 70, 0.12), rgba(33, 115, 70, 0.06)) !important;
    border-radius: 16px !important;
    font-size: 1.75rem !important;
}

html.dark .file-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)) !important;
}

.file-badge {
    padding: 0.375rem 0.875rem !important;
    background: var(--color-bg-tertiary) !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--color-text-secondary) !important;
}

.file-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin-bottom: 1.25rem !important;
    min-height: 3.25em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.file-meta {
    display: flex !important;
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 2px solid var(--color-border) !important;
}

.file-meta-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.file-meta-item i {
    font-size: 1.125rem !important;
    color: var(--color-primary) !important;
}

html.dark .file-meta-item i {
    color: #ffffff !important;
}

.file-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    width: 100% !important;
    padding: 1rem !important;
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--color-primary) !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.file-btn:hover {
    background: var(--color-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 115, 70, 0.25) !important;
}

.file-btn i {
    font-size: 1.125rem !important;
}

html.dark .file-btn {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

html.dark .file-btn:hover {
    background: #f0f0f0 !important;
}

/* ===== POPULAR FILES (SECTION-ALT) - HORIZONTAL COMPACT CARDS ===== */
.section-alt .file-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    border-radius: 16px !important;
}

.section-alt .file-card::after {
    display: none;
}

.section-alt .file-header {
    flex-direction: column !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.section-alt .file-icon {
    width: 64px !important;
    height: 64px !important;
    font-size: 2rem !important;
    margin-bottom: 0.5rem;
}

.section-alt .file-badge {
    font-size: 0.6875rem !important;
    padding: 0.25rem 0.625rem !important;
}

.section-alt .file-card>div:last-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-alt .file-title {
    font-size: 1.125rem !important;
    margin-bottom: 0.875rem !important;
    min-height: auto !important;
    -webkit-line-clamp: 1 !important;
}

.section-alt .file-meta {
    gap: 1rem !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    flex-wrap: nowrap;
}

.section-alt .file-meta-item {
    font-size: 0.8125rem !important;
}

.section-alt .file-btn {
    display: none !important;
}

@media (max-width: 767px) {
    .section-alt .file-card {
        flex-direction: column !important;
        text-align: center;
    }

    .section-alt .file-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100%;
    }

    .section-alt .file-icon {
        margin-bottom: 0;
    }
}

/* ===== RECENT FILES - MINIMAL BORDER STYLE ===== */
.files-section:last-of-type .file-card {
    border: 1px solid var(--color-border) !important;
    background: transparent !important;
    padding: 1.75rem !important;
    border-radius: 16px !important;
}

.files-section:last-of-type .file-card::after {
    display: none;
}

.files-section:last-of-type .file-card:hover {
    background: var(--color-bg) !important;
    border-color: var(--color-primary) !important;
}

.files-section:last-of-type .file-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.5rem !important;
    background: rgba(33, 115, 70, 0.08) !important;
}

html.dark .files-section:last-of-type .file-icon {
    background: rgba(255, 255, 255, 0.08) !important;
}

.files-section:last-of-type .file-title {
    font-size: 1.0625rem !important;
    min-height: 2.6em !important;
}

.files-section:last-of-type .file-meta {
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1.25rem !important;
}

.files-section:last-of-type .file-btn {
    padding: 0.875rem !important;
    font-size: 0.9375rem !important;
    background: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
}

.files-section:last-of-type .file-btn:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

html.dark .files-section:last-of-type .file-btn {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.dark .files-section:last-of-type .file-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--color-border) !important;
    border-radius: 12px;
    color: var(--color-text);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.view-all-btn:hover {
    border-color: var(--color-primary) !important;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.view-all-btn i {
    font-size: 1.125rem;
}

/* Dark mode adjustments */
html.dark .file-card::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent);
}

/* Canvas */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

/* Duotone colors for hero */
.hero {
    --fa-primary-color: #ffffff;
    --fa-secondary-color: rgba(255, 255, 255, 0.4);
}

html.dark .hero {
    --fa-secondary-color: #666666;
}