/* Add any custom styles here */
.record-card {
    transition: transform 0.2s ease-in-out;
}

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

/* Sticky header - only the page title */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    height: 64px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Search icon and bar */
#searchIcon {
    transition: transform 0.3s ease;
}

#searchIcon:hover {
    transform: scale(1.1);
}

#searchBar {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

#searchBar.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pagination */
#pagination button {
    transition: opacity 0.3s ease;
}

#pagination button:disabled {
    cursor: not-allowed;
}

/* Custom styles for Vinyl Record Collection */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Gruppo', sans-serif;
    background-color: #f3f4f6;
    padding-top: 64px; /* Space for the fixed header */
}

/* Filters container - part of scrollable content */
.filters-container {
    background-color: #f3f4f6; /* Match body background */
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filters-container .container {
    padding: 0.75rem 1rem;
}

/* Collection heading and grid */
#collection {
    padding-top: 1rem;
}

/* Square cards and dropdowns */
.record-card {
    border-radius: 0 !important;
    aspect-ratio: 1;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

select {
    border-radius: 0 !important;
}

/* 5 cards in one row */
@media (min-width: 1024px) {
    #collection {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

/* Smaller cards */
.record-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjust card content */
.record-card .p-4 {
    padding: 0.5rem !important;
}

.record-card .text-lg {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.record-card .text-sm {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

/* Adjust dropdowns */
select {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

/* Adjust header */
header h1 {
    font-size: clamp(1rem, 3.5vw, 2rem);
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 360px) {
    header h1 {
        font-size: 0.9rem;
    }
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.modal-image-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-image-section .main-image-container {
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    margin: 0 auto;
}

.modal-image-section .main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 500px;
}

.modal-image-section .thumbnails {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-image-section .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
}

.modal-details {
    width: 100%;
}

/* Add styles for the modal */
#recordModal {
    position: fixed;
    top: 64px; /* Start below the header */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    display: none;
    padding-top: 1rem;
    padding-bottom: 4rem; /* Add extra padding at the bottom for mobile */
}

#recordModal.visible {
    display: block;
}

#recordDetails {
    background: white;
    width: 95%;
    max-width: 1200px;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 0 auto 1rem auto;
    position: relative;
}

/* Close button styles */
.modal-close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: white;
    border-radius: 50%;
    width: 2.5rem;  /* Increased size */
    height: 2.5rem; /* Increased size */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    z-index: 1000;
}

.modal-close-button svg {
    width: 1.25rem;  /* Larger SVG */
    height: 1.25rem; /* Larger SVG */
    stroke: #333;    /* Darker color */
    stroke-width: 3; /* Thicker lines */
}

/* Ensure the SVG has hover state for better UX */
.modal-close-button:hover {
    background-color: #f3f4f6;
}

.modal-close-button:hover svg {
    stroke: #000;
}

/* Desktop styles - apply only for larger screens */
@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
    
    .modal-image-section {
        flex: 0 0 50%;
        max-width: 600px;
    }
    
    .modal-details {
        flex: 1;
    }

    .modal-image-section .thumbnails {
        justify-content: flex-start;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}
/* Header specific styles */
.header-title {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

@media (min-width: 400px) {
    .header-title {
        font-size: 1.35rem !important;
    }
}

@media (min-width: 640px) {
    .header-title {
        font-size: 1.75rem !important;
    }
}

@media (min-width: 768px) {
    .header-title {
        font-size: 2rem !important;
    }
}

@media (min-width: 1024px) {
    .header-title {
        font-size: 2.25rem !important;
    }
}

/* Add more bottom space on mobile */
@media (max-width: 767px) {
    #recordModal {
        padding-bottom: 6rem; /* Even more padding on mobile */
    }
    
    #recordDetails {
        margin-bottom: 2rem; /* Extra margin for the details container */
    }
}

