/* File: css/style.css */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #600018;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== VARIABLES ===== */
:root {
    --burgundy: #800020;
    --burgundy-light: #a8324d;
    --burgundy-dark: #600018;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --gray: #333333;
    --light-gray: #4a4a4a;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --gold: #d4af37;
    --gold-light: #f4e4a6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }

.overflow-hidden { overflow: hidden; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--light-gray);
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--off-white);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--off-white);
    background: var(--off-white);
}

/* ===== GRID SYSTEM ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.33%; max-width: 8.33%; }
.col-2 { flex: 0 0 16.66%; max-width: 16.66%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.col-5 { flex: 0 0 41.66%; max-width: 41.66%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.col-8 { flex: 0 0 66.66%; max-width: 66.66%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.33%; max-width: 83.33%; }
.col-11 { flex: 0 0 91.66%; max-width: 91.66%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* ===== TYPOGRAPHY ===== */
.text-primary { color: var(--burgundy); }
.text-secondary { color: var(--gold); }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-light { color: var(--light-gray); }
.text-dark { color: var(--dark-gray); }
.text-white { color: var(--white); }

.text-sm { font-size: 0.875rem; }
.text-md { font-size: 1rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }
.text-3xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-loose { line-height: 2; }

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 20px;
}

.badge-primary {
    background-color: var(--burgundy);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--gold);
    color: var(--black);
}

.badge-success {
    background-color: #28a745;
    color: var(--white);
}

.badge-danger {
    background-color: #dc3545;
    color: var(--white);
}

.badge-warning {
    background-color: #ffc107;
    color: var(--black);
}

.badge-info {
    background-color: #17a2b8;
    color: var(--white);
}

.badge-light {
    background-color: var(--off-white);
    color: var(--dark-gray);
}

.badge-dark {
    background-color: var(--dark-gray);
    color: var(--white);
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--off-white);
    text-align: left;
}

.table th {
    font-weight: 600;
    color: var(--burgundy-dark);
    background: var(--off-white);
}

.table tr:hover {
    background: rgba(128, 0, 32, 0.05);
}

.table-striped tbody tr:nth-child(odd) {
    background: var(--off-white);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 2rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.page-link.active {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-link.disabled:hover {
    background: transparent;
    color: var(--dark-gray);
    border-color: var(--light-gray);
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(128, 0, 32, 0.1);
    border-radius: 50%;
    border-top-color: var(--burgundy);
    animation: spin 1s ease-in-out infinite;
}

.spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.modal-backdrop.show {
    display: block;
}

/* ===== TOOLTIPS ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 5px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-gray) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ===== PROGRESS BARS ===== */
.progress {
    height: 20px;
    background: var(--off-white);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--burgundy);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-sm { height: 10px; }
.progress-lg { height: 30px; }

.progress-bar-success { background: #28a745; }
.progress-bar-info { background: #17a2b8; }
.progress-bar-warning { background: #ffc107; }
.progress-bar-danger { background: #dc3545; }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 576px) {
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
    .d-sm-flex { display: flex; }
    .d-sm-grid { display: grid; }
}

@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
    .d-md-grid { display: grid; }
}

@media (max-width: 992px) {
    .d-lg-none { display: none; }
    .d-lg-block { display: block; }
    .d-lg-flex { display: flex; }
    .d-lg-grid { display: grid; }
}

@media (max-width: 1200px) {
    .d-xl-none { display: none; }
    .d-xl-block { display: block; }
    .d-xl-flex { display: flex; }
    .d-xl-grid { display: grid; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    a {
        color: black !important;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-dark);
}

/* ===== FOCUS STYLES ===== */
:focus-visible {
    outline: 2px solid var(--burgundy);
    outline-offset: 2px;
}

/* ===== SELECTION STYLES ===== */
::selection {
    background: rgba(128, 0, 32, 0.3);
    color: var(--white);
}

::-moz-selection {
    background: rgba(128, 0, 32, 0.3);
    color: var(--white);
}

/* ===== PLACEHOLDER STYLES ===== */
::placeholder {
    color: var(--light-gray);
    opacity: 1;
}

:-ms-input-placeholder {
    color: var(--light-gray);
}

::-ms-input-placeholder {
    color: var(--light-gray);
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== IMAGE RESPONSIVE ===== */
.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-thumbnail {
    padding: 4px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
}

.img-rounded {
    border-radius: var(--radius);
}

.img-circle {
    border-radius: 50%;
}

/* ===== CLEARFIX ===== */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ===== VISIBILITY ===== */
.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* ===== OPACITY ===== */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ===== TRANSITIONS ===== */
.transition-all {
    transition: all 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* ===== TRANSFORMS ===== */
.rotate-0 { transform: rotate(0deg); }
.rotate-90 { transform: rotate(90deg); }
.rotate-180 { transform: rotate(180deg); }
.rotate-270 { transform: rotate(270deg); }

.scale-0 { transform: scale(0); }
.scale-50 { transform: scale(0.5); }
.scale-75 { transform: scale(0.75); }
.scale-100 { transform: scale(1); }
.scale-125 { transform: scale(1.25); }
.scale-150 { transform: scale(1.5); }

.translate-x-0 { transform: translateX(0); }
.translate-y-0 { transform: translateY(0); }

/* ===== Z-INDEX ===== */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* ===== OVERFLOW ===== */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* ===== POSITION ===== */
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.top-auto { top: auto; }
.right-auto { right: auto; }
.bottom-auto { bottom: auto; }
.left-auto { left: auto; }

/* ===== BORDERS ===== */
.border { border: 1px solid var(--light-gray); }
.border-0 { border: 0; }
.border-top { border-top: 1px solid var(--light-gray); }
.border-right { border-right: 1px solid var(--light-gray); }
.border-bottom { border-bottom: 1px solid var(--light-gray); }
.border-left { border-left: 1px solid var(--light-gray); }

.border-primary { border-color: var(--burgundy); }
.border-secondary { border-color: var(--gold); }
.border-success { border-color: #28a745; }
.border-danger { border-color: #dc3545; }
.border-warning { border-color: #ffc107; }
.border-info { border-color: #17a2b8; }
.border-light { border-color: var(--light-gray); }
.border-dark { border-color: var(--dark-gray); }
.border-white { border-color: var(--white); }

.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: calc(var(--radius) / 2); }
.rounded-lg { border-radius: calc(var(--radius) * 1.5); }
.rounded-full { border-radius: 9999px; }

.rounded-top { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.rounded-right { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.rounded-bottom { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.rounded-left { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }

/* ===== BACKGROUNDS ===== */
.bg-primary { background-color: var(--burgundy); }
.bg-secondary { background-color: var(--gold); }
.bg-success { background-color: #28a745; }
.bg-danger { background-color: #dc3545; }
.bg-warning { background-color: #ffc107; }
.bg-info { background-color: #17a2b8; }
.bg-light { background-color: var(--off-white); }
.bg-dark { background-color: var(--dark-gray); }
.bg-white { background-color: var(--white); }
.bg-transparent { background-color: transparent; }

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* ===== SHADOWS ===== */
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); }
.shadow-none { box-shadow: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideInDown 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

.animate-duration-100 { animation-duration: 0.1s; }
.animate-duration-200 { animation-duration: 0.2s; }
.animate-duration-300 { animation-duration: 0.3s; }
.animate-duration-500 { animation-duration: 0.5s; }
.animate-duration-700 { animation-duration: 0.7s; }
.animate-duration-1000 { animation-duration: 1s; }

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --burgundy: #600018;
        --gold: #b8860b;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tambahkan ke file style.css yang sudah ada */

/* OOTD Specific Styles */
.ootd-card {
    position: relative;
    overflow: hidden;
}

.ootd-card .image-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
}

/* Slider enhancements */
.slider-track {
    will-change: transform;
}

.slider-item {
    user-select: none;
}

/* Animation delays for staggered animations */
.ootd-card:nth-child(2) { animation-delay: 0.1s; }
.ootd-card:nth-child(3) { animation-delay: 0.2s; }
.ootd-card:nth-child(4) { animation-delay: 0.3s; }
.ootd-card:nth-child(5) { animation-delay: 0.4s; }
.ootd-card:nth-child(6) { animation-delay: 0.5s; }