/* ThreeOldGoats Vintage - Custom Styles */

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Branding */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Card hover effect for gallery */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Gallery specific styles */
.card-img-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Public-gallery photo smoothing — softens harsh phone-shot colors at rest;
   hover snaps back to original so visitors can inspect detail. */
.gallery-photo {
    filter: saturate(0.92) contrast(0.97) brightness(1.02) blur(0.3px);
    transition: filter 0.25s ease-in-out;
}

.carousel:hover .gallery-photo,
.gallery-solo:hover .gallery-photo {
    filter: none;
}

/* Gallery carousel: fixed hero-band height, images fill via object-fit so
   different aspect ratios don't jostle the page between slides. */
.gallery-carousel-inner .carousel-item img {
    height: clamp(280px, 60vh, 560px);
    object-fit: cover;
}

/* Readability gradient under the caption — white text stays legible over
   both dark and light photos without a solid bar. */
.gallery-carousel-inner .carousel-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.gallery-carousel-inner .carousel-caption {
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Single-photo fallback — same hero-band container, no carousel chrome. */
.gallery-solo {
    position: relative;
    border-radius: 0.25rem;
    overflow: hidden;
}

.gallery-solo .solo-photo {
    display: block;
    width: 100%;
    height: clamp(280px, 60vh, 560px);
    object-fit: cover;
}

.gallery-solo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.25rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

/* Login page */
.card-body h2 {
    color: #212529;
}

/* Tables */
.table-responsive {
    border-radius: 0.25rem;
}

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .display-4,
    .display-5 {
        font-size: 2rem;
    }

    .btn-group {
        display: flex;
        flex-wrap: wrap;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Flash messages */
.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #0dcaf0;
}
