/* ============================================
   EchoMiniThemes - Custom Styles
   ============================================ */

/* -- Hero Section -- */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 3rem 2rem;
}

.hero-section .lead {
    color: #b0bec5 !important;
}

/* -- Theme Cards -- */
.theme-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.theme-screenshot {
    object-fit: cover;
    height: 180px;
    width: 100%;
    background-color: #f5f5f5;
}

.theme-card .card-title a:hover {
    color: #0d6efd !important;
}

/* -- Detail page screenshot -- */
.detail-screenshot {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background-color: #f5f5f5;
}

/* -- Favorite Button -- */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.favorited i {
    color: #dc3545 !important;
}

/* -- Detail page favorite button -- */
.favorite-btn-detail {
    transition: all 0.15s ease;
}

/* -- Tags -- */
.tag-pill {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    transition: background-color 0.15s ease;
}

.tag-pill:hover {
    background-color: #e9ecef !important;
    text-decoration: none !important;
}

.tag-badge {
    border-radius: 2rem;
}

/* -- Discord Login Button -- */
.btn-discord {
    background-color: #5865F2;
    color: #fff;
    border: none;
}

.btn-discord:hover {
    background-color: #4752C4;
    color: #fff;
}

/* -- Tag suggestion buttons on upload form -- */
.tag-suggestion-btn {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.tag-suggestion-btn:hover {
    background-color: #e9ecef !important;
}

/* -- Flash Messages -- */
.flash-message {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Pagination active -- */
.pagination .page-item.active .page-link {
    background-color: #0f3460;
    border-color: #0f3460;
}

/* -- Footer -- */
footer {
    border-top: 3px solid #0f3460;
}

/* -- Responsive Adjustments -- */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .theme-screenshot {
        height: 140px;
    }

    .navbar-brand {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .theme-card .card-body {
        padding: 0.75rem;
    }

    .theme-card .card-title {
        font-size: 0.9rem;
    }
}

/* -- Upload Form -- */
#upload-form .form-control:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.25);
}

/* -- Scrollbar (optional, for webkit) -- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
