/* Main styles for Burning Man Camp Management System */

/* Global styles */
:root {
    --primary-color: #ff6d00;        /* Burning orange */
    --secondary-color: #b71c1c;      /* Deep red */
    --accent-color: #ffab00;         /* Amber */
    --dark-color: #2d1b00;           /* Deep brown */
    --light-color: #fffde7;          /* Desert sand */
    --success-color: #7cb342;        /* Desert sage */
    --warning-color: #ff9800;        /* Orange */
    --danger-color: #d50000;         /* Bright red */
    --info-color: #0277bd;           /* Desert sky blue */
    --border-radius: 0px;            /* Straight edges for dusty playa aesthetic */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--light-color);
    background-image: url('../images/dust-texture.png');
    background-blend-mode: overlay;
    font-family: 'Futura', 'Trebuchet MS', Arial, sans-serif;
    color: var(--dark-color);
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Futura', 'Impact', 'Arial Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom navbar styles */
.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-bottom: 2px solid var(--accent-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    font-family: 'Futura', 'Impact', 'Arial Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--light-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 0.75rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px 3px 0 0;
}

/* Card styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-left: 5px solid var(--primary-color);
}

.card-header {
    font-weight: bold;
    padding: 15px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #f9f9f9;
    border-bottom: 2px solid var(--accent-color);
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: white;
}

/* Button styles */
.btn {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

/* Form styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 171, 0, 0.25);
}

.form-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Table styles */
.table {
    background-color: white;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background-color: #f5f5f5;
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 109, 0, 0.05);
}

/* Dashboard widgets */
.dashboard-widget {
    padding: 20px;
    border-radius: var(--border-radius);
    height: 100%;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.widget-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Playa-inspired progress bars */
.progress {
    height: 20px;
    border-radius: var(--border-radius);
    background-color: #f5f5f5;
    overflow: hidden;
}

.progress-bar {
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Event cards */
.event-card {
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.event-card.mandatory {
    border-left-color: var(--danger-color);
}

.event-card.optional {
    border-left-color: var(--info-color);
}

.event-date {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-location {
    color: #444;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.event-location:before {
    content: '\f3c5';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

.event-mandatory {
    font-weight: bold;
    color: var(--danger-color);
    text-transform: uppercase;
}

.event-points {
    font-weight: bold;
    color: var(--success-color);
    display: inline-block;
    padding: 3px 8px;
    background-color: rgba(124, 179, 66, 0.1);
    border-radius: 20px;
}

/* Lodging and Transportation */
.option-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.option-card.selected {
    border: 2px solid var(--success-color);
}

.option-card.sold-out::after {
    content: "Sold Out";
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: var(--danger-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.option-image {
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

/* Items grid */
.item-image {
    height: 150px;
    object-fit: cover;
}

.item-card {
    transition: transform 0.3s ease;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-price {
    font-weight: bold;
    color: var(--primary-color);
}

.item-category {
    font-size: 0.85rem;
    color: #666;
}

/* Billing */
.billing-status-paid {
    color: var(--success-color);
    font-weight: bold;
}

.billing-status-partial {
    color: var(--warning-color);
    font-weight: bold;
}

.billing-status-unpaid {
    color: var(--danger-color);
    font-weight: bold;
}

.lodging-choice-selection,
.rv-lodging-selection {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.lodging-choice-section-title,
.rv-lodging-section-title {
    margin-bottom: 0.75rem;
    color: #1f2a37;
    font-weight: 700;
}

.lodging-choice-grid,
.rv-lodging-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.875rem;
}

.lodging-choice-card,
.rv-lodging-card {
    display: block;
    height: 100%;
    margin: 0;
}

.lodging-choice-card-input,
.rv-lodging-card-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.lodging-choice-card-shell,
.rv-lodging-card-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #d6dee8;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.lodging-choice-card-input:checked + .lodging-choice-card-shell,
.rv-lodging-card-input:checked + .rv-lodging-card-shell {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.16);
}

.lodging-choice-card-input:focus-visible + .lodging-choice-card-shell,
.rv-lodging-card-input:focus-visible + .rv-lodging-card-shell {
    border-color: #0a58ca;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.24);
}

.lodging-choice-media,
.rv-lodging-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #eef3f8;
    color: #566577;
    font-weight: 700;
}

.lodging-choice-media img,
.rv-lodging-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lodging-choice-empty-image,
.rv-lodging-empty-image {
    font-size: 1.5rem;
}

.lodging-choice-body,
.rv-lodging-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.875rem;
}

.lodging-choice-title,
.rv-lodging-title {
    color: #1f2a37;
    font-weight: 700;
}

.lodging-choice-description,
.rv-lodging-description {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.35;
}

.lodging-choice-meta,
.rv-lodging-meta {
    min-height: 1.25rem;
    color: #5d6b7a;
    font-size: 0.86rem;
}

.lodging-choice-thumbnails {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    margin-top: 0.15rem;
}

.lodging-choice-thumbnail,
.lodging-choice-more {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
}

.lodging-choice-thumbnail {
    object-fit: cover;
}

.lodging-choice-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef3f8;
    color: #566577;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Admin dashboard */
.admin-stat-card {
    text-align: center;
    padding: 20px;
}

.admin-stat-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: bold;
}

.admin-stat-label {
    font-size: 1rem;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .admin-stat-icon {
        font-size: 2rem;
    }
    
    .admin-stat-value {
        font-size: 1.5rem;
    }
}

/* Custom footer */
footer {
    background-color: var(--dark-color) !important;
    color: var(--light-color);
    border-top: 3px solid var(--primary-color);
    padding: 2rem 0 !important;
}

footer a {
    color: var(--accent-color);
}

footer a:hover {
    color: var(--light-color);
}

/* Special Burning Man Effects */

/* Dust overlay effect */
.dust-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dust-texture.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Burning border animation for CTA buttons */
.btn-burning {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-burning::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 100%;
    animation: burningBorder 2s linear infinite;
    z-index: -1;
}

@keyframes burningBorder {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* The Man symbol for special sections */
.man-symbol {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 40px;
    margin: 0 10px;
}

.man-symbol:before, .man-symbol:after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
}

.man-symbol:before {
    width: 2px;
    height: 30px;
    left: 9px;
    top: 5px;
}

.man-symbol:after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 15px;
}

/* Section dividers with playa art style */
.playa-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 2rem 0;
    position: relative;
}

.playa-divider::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    top: -3.5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* Sunrise/Sunset gradient background for highlight sections */
.playa-gradient {
    background: linear-gradient(135deg, #ff6d00, #b71c1c, #880e4f);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.playa-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/dust-texture.png');
    opacity: 0.2;
}

/* Temple-inspired quiet spaces */
.temple-card {
    background-color: #fff8e1;
    border-left: none;
    border-top: 5px solid #d4a017;
    padding: 2rem;
    text-align: center;
    font-style: italic;
    position: relative;
}

.temple-card::before {
    content: '✧';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #d4a017;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    font-size: 1rem;
}

/* Toast notification in desert style */
.toast-desert {
    background-color: rgba(255, 251, 235, 0.95);
    border-left: 4px solid var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Radical inclusion badge */
.radical-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    font-weight: bold;
}
