/* ===================================
   ALBUM GRID FINAL - FINAL VERSION
   Matching exact aspect ratios and responsive behavior
   =================================== */

/* ===================================
   DISABLED ALBUM LINKS
   =================================== */

/* Style for album links without href (disabled state) */
.album-link:not([href]) {
    cursor: default;
    position: relative;
}

/* Coming Soon overlay on hover for disabled links */
.album-link:not([href]):hover .album-image::after {
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOverlay 0.3s ease-out forwards;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===================================
   SECTION CONTAINER
   =================================== */

.albums-section {
    width: 100%;
    padding: 60px 20px;
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .albums-section {
        padding: 80px 40px;
    }
}

@media (min-width: 1200px) {
    .albums-section {
        padding: 80px 60px;
    }
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-near-black);
    margin: 0;
}

.view-all-link {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 300;
    text-transform: lowercase;
    color: var(--color-near-black);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.view-all-link:hover {
    border-bottom-color: var(--color-near-black);
}

/* ===================================
   GRID LAYOUT - FLUID RESPONSIVE
   =================================== */

.albums-grid {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    gap: 20px;
    max-width: 1400px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Mobile: 1 column */
@media (max-width: 599px) {
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Small tablet: 2 columns */
@media (min-width: 600px) and (max-width: 899px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablet to Desktop: 2 columns with max width */
@media (min-width: 900px) and (max-width: 1199px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 1000px;
    }
}

/* Desktop: 2 columns, larger */
@media (min-width: 1200px) {
    .albums-grid {
        grid-template-columns: repeat(2, minmax(400px, 1fr));
        gap: 30px;
        max-width: 1200px;
    }
}

/* Large screens: Can show 3 columns */
@media (min-width: 1600px) {
    .albums-grid {
        grid-template-columns: repeat(3, minmax(380px, 1fr));
        gap: 30px;
        max-width: 1400px;
    }
}

/* ===================================
   ALBUM CARD - EXACT PROFESSIONAL DESIGN
   =================================== */

.album-card {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.album-link {
    display: block;
    text-decoration: none;
    color: white;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 120%; /* 5:6 aspect ratio - taller cards like professional design */
}

/* Responsive aspect ratio adjustments */
@media (min-width: 900px) {
    .album-link {
        padding-bottom: 110%; /* Slightly wider on larger screens */
    }
}

@media (min-width: 1400px) {
    .album-link {
        padding-bottom: 100%; /* Square-ish on very large screens */
    }
}

/* ===================================
   IMAGE CONTAINER WITH GRADIENT
   =================================== */

.album-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.album-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-image::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.album-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Special positioning for portrait images */
.album-card:first-child .album-image img {
    object-position: center 25%; /* Keep faces visible */
}

.album-card:hover .album-image img {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===================================
   TEXT OVERLAY WITH DECORATIVE LINE
   =================================== */

.album-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    z-index: 2;
    color: white;
}

@media (max-width: 599px) {
    .album-content {
        padding: 30px 24px 24px;
    }
}

/* Album Title */
.album-title {
    font-family: var(--font-serif);
    font-size: 54px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    position: relative;
    padding-bottom: 20px;
}

/* DECORATIVE LINE - Matching professional design */
.album-title::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}

.album-card:hover .album-title::after {
    background: rgba(255, 255, 255, 0.5);
}

/* Remove subtitle completely */
.album-subtitle {
    display: none !important;
}

/* Album Meta (Date) */
.album-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin: 12px 0 0 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Hover effect on text */
.album-card:hover .album-title {
    transform: translateY(-2px);
}

/* ===================================
   AVAILABILITY BADGE
   =================================== */

.album-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    background: rgba(212, 225, 87, 0.95);
    color: #1a1a1a;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.album-card:hover .album-badge {
    transform: scale(1.05) translateY(-2px);
    background: rgba(212, 225, 87, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================================
   RESPONSIVE TYPOGRAPHY
   =================================== */

/* Mobile */
@media (max-width: 599px) {
    .album-title {
        font-size: 40px;
        padding-bottom: 18px;
    }
    
    .album-meta {
        font-size: 10px;
        margin-top: 10px;
    }
    
    .album-badge {
        top: 16px;
        right: 16px;
        font-size: 9px;
        padding: 6px 12px;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 899px) {
    .album-title {
        font-size: 46px;
        padding-bottom: 18px;
    }
}

/* Desktop */
@media (min-width: 900px) and (max-width: 1199px) {
    .album-title {
        font-size: 50px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .album-title {
        font-size: 56px;
    }
}

/* ===================================
   SMOOTH TRANSITIONS
   =================================== */

/* Use CSS custom properties for smooth resizing */
.album-card {
    --card-scale: 1;
    transform: scale(var(--card-scale));
    transition: all 0.3s ease;
}

/* Container query support for future */
@container (min-width: 400px) {
    .album-title {
        font-size: calc(40px + 1vw);
    }
}

/* ===================================
   LOADING STATES
   =================================== */

.album-image {
    background: #1a1a1a;
}

.album-image img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.album-card:focus-within {
    outline: 3px solid var(--color-purple);
    outline-offset: 4px;
}

.album-link:focus {
    outline: none;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .album-image::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.95) 100%
        );
    }
    
    .album-title::after {
        background: rgba(255, 255, 255, 0.6);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .album-card,
    .album-image img,
    .album-badge {
        transition: none;
        animation: none;
    }
    
    .album-card:hover {
        transform: none;
    }
    
    .album-card:hover .album-image img {
        transform: translate(-50%, -50%);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .album-card {
        break-inside: avoid;
        box-shadow: none;
    }
    
    .album-link {
        padding-bottom: 100%;
    }
}