/* hobbies.css */

/* --- Control Panel Buttons --- */
.hobby-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--text-accent);
    color: var(--bg-main);
    border-color: var(--text-accent);
}

/* --- General Grid (Used for Chess/Anime/Movies) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    /* Basic fade in animation */
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Styling for standard text cards (Chess/Movies) */
.hobby-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hobby-card h3 {
    margin-top: 0;
    color: var(--text-accent);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    color: #f1c40f; /* Star yellow */
    font-weight: bold;
}

/* =========================================
   PHOTOGRAPHY GRID STYLES
   ========================================= */

.gallery-grid.photo-mode {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px; 
}

/* The Physical Photocard Container */
.photo-card {
    position: relative;
    background-color: #fff; /* White paper background */
    padding: 12px 12px 18px 12px; /* Padding creates the white border */
    border-radius: 4px; /* Slight rounding like real photo paper */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Realistic shadow */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

/* Wrapper to keep the actual image area square */
.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces the image area to be square */
    overflow: hidden;
    border-radius: 2px; /* Subtle inner rounding */
    background: #eee; /* Placeholder grey */
}

.photo-card img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* The metadata section below the image */
.photo-info {
    margin-top: 15px;
    text-align: center;
}

/* Visible Title */
.photo-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #2b3240; /* Dark text for contrast against white card */
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Visible Location */
.photo-location {
    display: block;
    font-size: 0.85rem;
    color: #7a8a9e; /* Lighter grey/blue for location */
    font-weight: 500;
}

.photo-location i {
    color: var(--text-accent); /* Gold icon */
    margin-right: 6px;
}

/* Hover Interaction */
.photo-card:hover {
    /* Lift up and tilt slightly */
    transform: translateY(-8px) rotate(1.5deg);
    /* Stronger shadow on lift */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 10;
}

.photo-card:hover img {
    /* Subtle zoom inside the frame */
    transform: scale(1.05);
}

/* =========================================
   MODAL (LIGHTBOX) STYLES
   ========================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Very dark backdrop */
    z-index: 2000; /* On top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-secondary);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Modal: Left Side (Image) */
.modal-image-container {
    flex: 1.5;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

/* Modal: Right Side (Info) */
.modal-info {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    color: var(--text-accent);
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.modal-meta {
    margin-bottom: 20px;
    color: #8b9bb4;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}

.modal-meta i {
    color: var(--text-accent);
    margin-right: 5px;
}

#modal-desc {
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1rem;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-accent);
}

/* Modal Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }
    .modal-image-container {
        height: auto;
        max-height: 50vh;
    }
    .modal-info {
        padding: 20px;
    }
    .close-btn {
        top: 10px;
        right: 20px;
    }
}



/* ... (Keep all your existing CSS) ... */

/* =========================================
   ANIME / MANGA GRID STYLES
   ========================================= */

.gallery-grid.anime-mode {
    /* Slightly narrower columns for "Poster" aspect ratio */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.anime-card {
    background-color: var(--bg-secondary); /* Dark card background */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.anime-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-accent);
}

/* 2:3 Aspect Ratio for Posters */
.poster-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3; 
    overflow: hidden;
    position: relative;
}

.poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.anime-card:hover img {
    transform: scale(1.05);
}

/* Info Section */
.anime-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.anime-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
    line-height: 1.3;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes to bottom */
}

/* Type Badge */
.type-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.type-badge.anime {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.type-badge.manga {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Star Rating */
.star-rating {
    color: #f1c40f;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Add this to your existing hobbies.css */

/* Reusing the Anime Card styles for Movies, just adding a color for the genre badge */
.type-badge.genre {
    background-color: rgba(155, 89, 182, 0.2); /* Purple tint */
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}