/**
 * Leopard Gecko Catalog - Main Stylesheet
 * 
 * File: static/css/style.css
 * Description: Main styles - Orange Black Luxury Theme
 * 
 * @package Leopard Gecko Catalog
 * @version 1.0
 */

/* ============================================
   CSS Variables - Orange Black Luxury Theme
   ============================================ */
:root {
    --primary-color: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #f39c12;
    --secondary-color: #f5b041;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --warning-color: #f1c40f;
    --dark-color: #1a1a1a;
    --darker-color: #0a0a0a;
    --light-color: #fafafa;
    --gray-color: #95a5a6;
    --gold-accent: #f1c40f;
    
    --ready-color: #27ae60;
    --terjual-color: #e74c3c;
    --geckobaru-color: #3498db;
    
    --card-shadow: 0 4px 15px rgba(230, 126, 34, 0.15);
    --card-shadow-hover: 0 10px 30px rgba(230, 126, 34, 0.25);
    --transition-speed: 0.3s;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.6;
}

/* ============================================
   Navbar Styles
   ============================================ */
.navbar {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-speed);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(230, 126, 34, 0.5);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: white;
    padding: 120px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}

.hero-image {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(230, 126, 34, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 50px rgba(230, 126, 34, 0.8);
        transform: scale(1.05);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(230, 126, 34, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(243, 156, 18, 0.08) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.4rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: #b0b0b0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Filter Section
   ============================================ */
.filter-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    border-bottom: 1px solid #2d2d2d;
    padding: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.filter-section .form-select,
.filter-section .form-control {
    border: 2px solid #2d2d2d;
    border-radius: 8px;
    transition: all var(--transition-speed);
    background: #1a1a1a;
    color: #e0e0e0;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(230, 126, 34, 0.2);
    background: #0d0d0d;
    color: #fff;
}

.filter-section .form-label {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ============================================
   Catalog Section Background
   ============================================ */
.catalog-section {
    background: linear-gradient(180deg, #0d0d0d 0%, #141414 50%, #0a0a0a 100%);
    min-height: 60vh;
}

/* ============================================
   Catalog Card Styles
   ============================================ */
.gecko-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-speed);
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
    position: relative;
}

.gecko-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-light));
}

.gecko-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.25);
}

.gecko-image-container {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.gecko-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.gecko-card:hover .gecko-image-container img {
    transform: scale(1.1);
}

/* Carousel Styles */
.gecko-image-container .carousel {
    height: 100%;
}

.gecko-image-container .carousel-inner {
    height: 100%;
}

.gecko-image-container .carousel-item {
    height: 100%;
}

.gecko-image-container .carousel-item img {
    height: 100%;
    object-fit: cover;
}

.gecko-image-container .carousel-control-prev,
.gecko-image-container .carousel-control-next {
    opacity: 0;
    transition: opacity var(--transition-speed);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.9), rgba(243, 156, 18, 0.9));
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    margin: 0 15px;
}

.gecko-image-container:hover .carousel-control-prev,
.gecko-image-container:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    background-size: 50%;
    width: 15px;
    height: 15px;
}

/* No Image Placeholder */
.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4a4a4a;
}

.no-image i {
    font-size: 4.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.no-image span {
    font-size: 1rem;
    color: #666;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.status-ready {
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: white;
}

.status-terjual {
    background: linear-gradient(135deg, #922b21, #c0392b);
    color: white;
}

.status-gecko-baru {
    background: linear-gradient(135deg, #1a5276, #2980b9);
    color: white;
}

/* ============================================
   Card Body Styles
   ============================================ */
.gecko-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gecko-info p {
    font-size: 0.9rem;
    color: #a0a0a0;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.gecko-info i {
    width: 22px;
    color: var(--primary-color);
    margin-right: 8px;
}

.gecko-info strong {
    color: #e0e0e0;
}

.gecko-card .card-text {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
}

/* Card Footer */
.gecko-card .card-footer {
    background: transparent;
    border-top: 1px solid #2d2d2d;
    padding: 15px;
}

/* ============================================
   Button Styles
   ============================================ */
.btn-success {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    border: none;
    font-weight: 600;
    padding: 14px 25px;
    border-radius: 30px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.6);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    border: none;
    font-weight: 600;
    padding: 14px 25px;
    border-radius: 30px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.6);
    background: linear-gradient(135deg, #196f3d 0%, #1e8449 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
    border: none;
    font-weight: 600;
    padding: 14px 25px;
    border-radius: 30px;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    transform: translateY(-2px);
}

/* ============================================
   Pagination Styles
   ============================================ */
.pagination {
    gap: 8px;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 2px solid #2d2d2d;
    border-radius: 25px;
    padding: 12px 20px;
    margin: 0 4px;
    font-weight: 600;
    transition: all var(--transition-speed);
    background: #1a1a1a;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

/* ============================================
   Admin Sidebar
   ============================================ */
.sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    box-shadow: 2px 0 15px rgba(230, 126, 34, 0.1);
    border-right: 1px solid #2d2d2d;
}

.sidebar .nav-link {
    color: #b0b0b0;
    padding: 14px 20px;
    border-radius: 10px;
    margin: 8px 12px;
    font-weight: 500;
    transition: all var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.sidebar .nav-link i {
    margin-right: 12px;
    width: 22px;
    color: var(--primary-color);
}

.sidebar .nav-link.active i,
.sidebar .nav-link:hover i {
    color: #fff;
}

/* ============================================
   Admin Stats Cards
   ============================================ */
.card {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card.bg-primary {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 50%, #f39c12 100%) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%) !important;
}

.card.bg-danger {
    background: linear-gradient(135deg, #922b21 0%, #c0392b 100%) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%) !important;
}

.card h2 {
    font-size: 2.8rem;
    font-weight: 700;
}

.card h5 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Table Styles
   ============================================ */
.table {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: none;
    padding: 18px;
    border-bottom: 2px solid var(--primary-color);
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #2d2d2d;
    color: #d0d0d0;
}

.table-hover tbody tr:hover {
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.1), rgba(243, 156, 18, 0.05));
}

.img-thumbnail {
    border-radius: 10px;
    border: 2px solid #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.no-image-table {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 10px;
    color: var(--primary-dark);
}

/* ============================================
   Footer Styles
   ============================================ */
footer {
    margin-top: auto;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    color: #888;
    padding: 40px 0;
    border-top: 2px solid var(--primary-color);
}

footer p {
    color: #666;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .gecko-image-container {
        height: 220px;
    }
    
    .gecko-card .card-title {
        font-size: 1.1rem;
    }
    
    .sidebar {
        background: linear-gradient(180deg, #0d0d0d 0%, #000 100%);
        padding: 20px 0;
    }
    
    .card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .filter-section .col-md-4 {
        margin-bottom: 12px;
    }
    
    .gecko-image-container {
        height: 200px;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .btn-success, .btn-primary {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}

/* ============================================
   Alert Styles
   ============================================ */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
}

.alert-info {
    background: linear-gradient(135deg, #1a3a4a, #154360);
    color: #5dade2;
    border-left: 4px solid #3498db;
}

.alert-success {
    background: linear-gradient(135deg, #145a32, #1e8449);
    color: #82e0aa;
    border-left: 4px solid #27ae60;
}

.alert-danger {
    background: linear-gradient(135deg, #641e16, #7b241c);
    color: #f1948a;
    border-left: 4px solid #e74c3c;
}

.alert-warning {
    background: linear-gradient(135deg, #7d6608, #9a7d0a);
    color: #f9e79f;
    border-left: 4px solid #f1c40f;
}

/* ============================================
   Form Styles
   ============================================ */
.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #2d2d2d;
    padding: 14px 18px;
    transition: all var(--transition-speed);
    background: #1a1a1a;
    color: #e0e0e0;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(230, 126, 34, 0.15);
    background: #0d0d0d;
    color: #fff;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ============================================
   Card Header Styles
   ============================================ */
.card-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px;
}

.card-header h4 {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Animation Classes
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price Tag Style */
.price-tag {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Code Tag Style */
.code-tag {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: var(--gold-accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid #3d3d3d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: var(--primary-color);
    color: #fff;
}





#promoModal .modal-dialog {
    max-width: 500px;
}

#promoModal img {
    max-height: 70vh;
    object-fit: cover;
}

