/* 
 * Custom CSS Styles
 * Photo Gallery System for Faculty of Education Student Club, Kasetsart University
 */

/* Base Styles */
body {
    font-family: 'Prompt', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main container and content */
.container {
    max-width: 1280px;
}

footer {
    margin-top: auto;
}

/* Kasetsart University Colors */
:root {
    --ku-green: #4CAF50;
    --ku-green-dark: #388E3C;
    --ku-green-light: #A5D6A7;
    --ku-secondary: #FFC107;
    --ku-gray: #f5f5f5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #333;
}

.page-title {
    color: var(--ku-green-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Navbar and Navigation */
.navbar {
    border-bottom: 4px solid var(--ku-green);
}

.navbar-brand {
    font-weight: 600;
    color: var(--ku-green);
}

.navbar-brand small {
    font-weight: 400;
    font-size: 0.8rem;
}

.nav-link {
    font-weight: 500;
}

.nav-link.active {
    color: var(--ku-green) !important;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--ku-green);
    border-color: var(--ku-green);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--ku-green-dark);
    border-color: var(--ku-green-dark);
}

.btn-outline-primary {
    color: var(--ku-green);
    border-color: var(--ku-green);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--ku-green);
    border-color: var(--ku-green);
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    color: var(--ku-green-dark);
    font-weight: 600;
}

/* Album and Gallery */
.album-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.album-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

/* Photo Gallery CSS 
   Faculty of Education Student Club, Kasetsart University
*/

/* Gallery Image Card */
.gallery-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 220px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.gallery-image:hover img {
    filter: brightness(0.7);
}

.gallery-image .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image:hover .overlay {
    opacity: 1;
}

.gallery-image .image-actions {
    display: flex;
    gap: 5px;
}

.gallery-image .image-album-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.bg-green-light {
    background-color: var(--ku-green-light);
    color: var(--ku-green-dark);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    background-color: #e9ecef;
    color: #212529;
    text-decoration: none;
}

.tag-count {
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: 6px;
}

/* Single Image Page */
.single-image-container {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.single-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-actions-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.image-metadata {
    margin-top: 20px;
}

.metadata-item {
    margin-bottom: 15px;
}

.metadata-label {
    font-weight: 500;
    color: #6c757d;
}

.exif-data .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
}

.exif-data .accordion-button:focus {
    box-shadow: none;
}

.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

/* Related Images */
.related-images {
    margin-top: 30px;
}

.related-image {
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-image:hover img {
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

.pagination .page-link {
    color: #28a745;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #28a745;
    border-color: #28a745;
}

.pagination .page-link:hover {
    color: #218838;
    background-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-image {
        height: 180px;
    }
    
    .gallery-image .overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    }
}

@media (max-width: 576px) {
    .image-actions-bar {
        flex-wrap: wrap;
    }
    
    .image-actions-bar .btn {
        margin-bottom: 10px;
    }
}

/* Helper Classes */
.text-green {
    color: var(--ku-green);
}

.bg-green {
    background-color: var(--ku-green);
    color: white;
}

.bg-green-light {
    background-color: var(--ku-green-light);
    color: var(--ku-green-dark);
} 