/**
 * Hiaja - Donation Platform for Online Creators
 * Custom CSS Styles
 */

/* General Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

footer {
    margin-top: auto;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Color Overrides */
:root {
    --bs-primary: #ffc107;
    --bs-primary-rgb: 255, 193, 7;
    --bs-secondary: #ff8c00;
    --bs-success: #ffc107;
    --bs-info: #ffd700;
    --bs-warning: #f72585;
    --bs-danger: #f72585;
}

/* Buttons */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #333;
}

/* Navbar Styles */
.navbar-dark.bg-primary {
    background-color: #ffc107 !important;
}

.dropdown-item:active {
    background-color: var(--bs-primary);
}

/* Navigation hover effects */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
    transform: translateY(-1px);
}

.navbar-nav .nav-link:focus {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

/* Special hover for login button */
.navbar-nav .btn-outline-light {
    transition: all 0.3s ease;
}

.navbar-nav .btn-outline-light:hover {
    background-color: #fff !important;
    color: var(--bs-primary) !important;
    border-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Profile Cards */
.creator-card {
    transition: all 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-control:focus {
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Badge Styles */
.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(255, 193, 7, 0.05);
}

/* Dashboard Components */
.stats-card {
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #333;
    padding: 0.5rem 0 1rem; /* default desktop */
    overflow: hidden;
}

/* Responsif untuk tablet dan mobile */
@media (max-width: 992px) {
    .hero-section {
        padding: 0.5rem 0rem 1rem; /* lebih rapat di layar kecil */
        text-align: center; /* rapi di tengah */
    }
}

/* HP kecil */
@media (max-width: 576px) {
    .hero-section {
        padding: 0.5rem 1rem; /* kompak untuk layar kecil */
    }
}

/* BONUS: buat hero-section selalu proporsional secara vertikal */
.hero-section .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh; /* tinggi minimal 70% layar */
}





.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Ensure buttons are clickable and hoverable */
.hero-section .btn {
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: auto;
}

/* Individual button hover effects */
.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Prevent parent hover effects from affecting buttons */
.hero-section .btn-container {
    pointer-events: none;
}

.hero-section .btn-container .btn {
    pointer-events: auto;
}

/* Ensure buttons have proper initial state */
.hero-section .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #333;
    box-shadow: none;
    transform: none;
}

.hero-section .btn-outline-dark {
    background-color: transparent;
    border-color: #333;
    color: #333;
    box-shadow: none;
    transform: none;
}

/* Hero Image Styles */
.hero-section img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-section .text-dark {
    color: #333 !important;
}

.hero-section .btn-dark {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.hero-section .btn-dark:hover {
    background-color: #222;
    border-color: #222;
}

.hero-section .btn-outline-dark {
    color: #333;
    border-color: #333;
}

.hero-section .btn-outline-dark:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

/* Admin Dashboard */
.admin-dashboard .card {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.admin-dashboard .card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-dashboard .stats-card {
    color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
}

.admin-dashboard .stats-card h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-section .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Creator Profile Badge */
.category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Donation Form */
.donation-amount-options .btn {
    min-width: 80px;
}

.donation-form .form-control:focus {
    border-color: rgba(255, 193, 7, 0.8);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

/* Social Sharing Buttons */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.social-share-btn:hover {
    transform: scale(1.1);
}

.social-share-btn.facebook {
    background-color: #0032fa;
}

.social-share-btn.twitter {
    background-color: #000000;
}

.social-share-btn.linkedin {
    background-color: #01057e;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--bs-primary);
    border-color: #dee2e6;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #333;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.pagination .page-link:focus {
    color: #333;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.pagination .page-item.active .page-link {
    color: #333;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0.375rem;
}

/* List Group Styles */
.list-group-item {
    border-color: #dee2e6;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: var(--bs-primary);
}

.list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #333;
}

.list-group-item.active:hover {
    background-color: #e0a800;
    border-color: #e0a800;
}

.list-group-item-action {
    color: #495057;
}

.list-group-item-action:hover {
    color: #333;
    background-color: rgba(255, 193, 7, 0.1);
}

.list-group-item-action:focus {
    color: #333;
    background-color: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.list-group-item-action.active {
    color: #333;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* List Group Badge */
.list-group-item .badge {
    background-color: var(--bs-primary);
    color: #333;
}

/* Dark Mode Styles - For Future Implementation */
[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #f8f9fa;
}

[data-bs-theme="dark"] .card {
    background-color: #343a40;
    border-color: #495057;
}

[data-bs-theme="dark"] .card-header {
    background-color: #343a40;
    border-color: #495057;
}