/* Custom Styles for Disc Golf & Creative Portfolio */

/* Import custom fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Bangers&display=swap');

/* CSS Variables for consistent theming - DARK MODE */
:root {
    --primary-color: #f8fafc;
    /* Light text */
    --secondary-color: #374151;
    /* Medium dark gray */
    --accent-color: #68d391;
    /* Keep signature green */
    --text-color: #f9fafb;
    /* Near white text */
    --nav-bg: #0f172a;
    /* Very dark blue */
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    --transition-speed: 0.3s ease;
}

/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0f172a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.display-4 {
    font-weight: 700;
    color: var(--primary-color);
}

/* Enhanced navigation */
.navbar {
    background: linear-gradient(135deg, var(--nav-bg) 0%, #1e293b 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed);
}

.navbar-brand {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed);
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #81e6d9 !important;
}

/* Hero section with animated background */
.hero-section {
    background: linear-gradient(135deg, var(--accent-color), #68d391, #4fd153);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="30" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 6s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(180deg);
    }

    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

/* Enhanced cards with hover effects */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed);
    background: var(--secondary-color);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-img-top {
    transition: transform var(--transition-speed);
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #4fd153);
    box-shadow: 0 4px 8px rgba(104, 211, 145, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4fd153, var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(104, 211, 145, 0.4);
}

/* Table enhancements */
.table {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    color: white !important;
}

.table tbody td {
    color: white !important;
}

.table thead th {
    background: linear-gradient(135deg, var(--accent-color), #4fd153);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color var(--transition-speed);
}

.table tbody tr:hover {
    background-color: var(--nav-bg);
}

/* Table cell optimizations for better space usage */
.table-responsive .table th,
.table-responsive .table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.table-responsive .table th {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.5rem;
}

/* Disc images in table - make them pop */
.table img {
    border-radius: 8px;
    transition: transform var(--transition-speed);
    max-height: 80px;
}

.table img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Make first column (disc name) wider since it often contains images */
.table-responsive .table tbody td:first-child {
    max-width: 200px;
    white-space: normal;
}

/* Filter form styling */
.form-select {
    border-radius: 8px;
    border: 1px solid #4b5563;
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: border-color var(--transition-speed);
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(104, 211, 145, 0.25);
}

/* Gallery styling enhancements */
.album-card {
    position: relative;
    overflow: hidden;
}

.album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(104, 211, 145, 0) 0%, rgba(104, 211, 145, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    pointer-events: none;
}

.album-card:hover::before {
    opacity: 1;
}

.badge {
    font-size: 0.8em;
    font-weight: 500;
}

/* Modal enhancements */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

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

    .card {
        margin-bottom: 1rem;
    }

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

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .form-select {
        font-size: 0.9rem;
    }
}

/* Scroll to top button */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background: linear-gradient(135deg, var(--accent-color), #4fd153);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(104, 211, 145, 0.4);
}

#scrollToTopBtn.show {
    opacity: 1;
}

#scrollToTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(104, 211, 145, 0.5);
}

/* Animation for elements entering viewport */
.intersection-observer {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.intersection-observer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar dropdown z-index fix - maximum z-index to ensure visibility */
.navbar .dropdown-menu {
    z-index: 9999 !important;
    position: absolute;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Ensure navbar itself has proper positioning */
.navbar {
    position: relative;
    z-index: 1030;
}

/* Show dropdown on hover for better UX */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* Disc Collection Styles */

/* Disc cards */
.disc-card {
    transition: all var(--transition-speed);
    border: 1px solid #e2e8f0;
    height: auto;
    /* Allow cards to expand based on content */
}

.disc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.disc-image {
    width: 300px;
    height: 300px;
    /* Perfect square 300x300 container for disc images */
    margin: 0 auto 0;
    /* Center without top spacing */
    object-fit: contain;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: transform var(--transition-speed);
    background-color: white;
    /* Clean background for better image presentation */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.disc-card:hover .disc-image {
    transform: scale(1.05);
}

/* Removed card-img-container since we simplified the HTML structure */

.disc-placeholder {
    width: 300px;
    height: 300px;
    margin: 1rem auto 0;
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    border: 2px solid #4b5563;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.disc-details .badge {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* View toggle buttons */
.btn-group .btn {
    border-radius: 0;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-group .btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Filter improvements */
.form-label {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive disc grid */
@media (max-width: 576px) {
    .disc-card .card-body {
        padding: 0.75rem 0.5rem;
    }

    .disc-image {
        width: 200px;
        height: 200px;
    }

    .disc-placeholder {
        width: 200px;
        height: 200px;
    }

    .disc-details .badge {
        font-size: 0.65rem;
        margin-right: 0.2rem;
        margin-bottom: 0.1rem;
    }
}

/* Compact disc card styling for better image display */
.disc-card .card-body {
    padding: 0.75rem 1rem 1rem 1rem;
}

.disc-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-weight: 600;
    color: white !important;
}

.disc-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: white !important;
}

.disc-card .disc-details {
    margin-bottom: 0.5rem;
}

.disc-card .disc-details .badge {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    padding: 0.2rem 0.4rem;
    color: white !important;
    background-color: var(--secondary-color);
    border-color: #6b7280;
}

.disc-card .mt-2.small.text-muted {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-top: 0.5rem !important;
    color: #e5e7eb !important;
}

.disc-card .mt-2.small.text-muted div {
    margin-bottom: 0.2rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4fd153;
}

/* Full Size Image Modal Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.custom-modal-overlay img {
    height: 90vh;
    max-width: 90vw;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Cursor pointer for clickable images */
.disc-image:hover,
.table img:hover {
    opacity: 0.9;
    transition: opacity var(--transition-speed);
}