/* Custom CSS for Business Downloads Portal */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand i {
    width: 24px;
    height: 24px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.hero-section .display-4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Download Cards */
.download-card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.download-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.download-icon i {
    width: 24px;
    height: 24px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.card-text {
    margin-bottom: 1rem;
}

.download-meta {
    font-size: 0.875rem;
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: auto;
}

.download-meta i {
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn-download {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-download i {
    width: 18px;
    height: 18px;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Support Section */
.support-section {
    background: var(--light-color);
}

.support-info i {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    color: #adb5bd;
}

/* Directory Listing Styles */
.directory-listing {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.directory-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.directory-item {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-color);
}

.directory-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
}

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

.directory-item i {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: var(--secondary-color);
}

.directory-item:hover i {
    color: var(--primary-color);
}

.folder-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.file-info {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .download-card {
        margin-bottom: 1rem;
    }
    
    .support-info .row {
        flex-direction: column;
        text-align: center;
    }
    
    .support-info .col-auto {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .directory-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-info {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
