/* 
 * CSS for Collections Template
 * Matches the "Ten worlds, edited down" design
 */

:root {
    --bg-main: #fdfaf6;
    --text-dark: #2a2a2a;
    --text-light: #888888;
    --accent-orange: #fc7c36;
    --card-bg: #ffffff;
    --border-light: #e5e5e5;
    --font-heading: 'Inter', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', Helvetica, Arial, sans-serif;
}

.collections-main-wrapper {
    font-family: var(--font-body);
    color: var(--text-dark);
}

.collections-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.collections-header {
    margin-bottom: 60px;
}

.collections-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.header-left .breadcrumb {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 20px;
    background-color: transparent;
    padding: 0;
}

.header-left .page-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -1px;
}

.header-right .page-description {
    max-width: 380px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
    margin-bottom: 10px;
}

/* Filters */
.collections-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-btn:hover {
    border-color: var(--text-dark);
}

.filter-btn.active {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

.collection-stats {
    font-size: 12px;
    color: var(--text-light);
}

/* Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Card */
.collection-card {
    background: var(--card-bg);
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
}

.card-link-wrapper {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* Card Left - Content */
.card-content-left {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.card-top-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-orange);
    letter-spacing: 1px;
}

.card-titles {
    flex-grow: 1;
}

.card-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    font-size: 13px;
    font-weight: 600;
}

.shop-link {
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-link .arrow {
    transition: transform 0.2s ease;
}

.collection-card:hover .shop-link .arrow {
    transform: translateX(5px);
}

/* Card Right - Imagery */
.card-image-right {
    width: 45%;
    position: relative;
    background: repeating-linear-gradient(
        45deg,
        #f0ece6,
        #f0ece6 2px,
        #e8e4de 2px,
        #e8e4de 4px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mockup-container {
    position: relative;
    width: 80%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-img {
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #fff; /* fallback */
}

/* Left square image */
.mockup-left {
    position: absolute;
    width: 60%;
    height: 70%;
    left: 0;
    z-index: 1;
    border: 4px solid #fff;
}

/* Right rectangle image */
.mockup-right {
    position: absolute;
    width: 50%;
    height: 55%;
    right: 0;
    bottom: 10%;
    z-index: 2;
    border: 4px solid #2a2a2a;
}

.view-room-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-card:hover .view-room-badge {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .collections-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .header-right .page-description {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .card-link-wrapper {
        flex-direction: column;
    }
    
    .card-image-right {
        width: 100%;
        height: 250px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .collections-container {
        padding: 0 20px;
    }
    
    .header-left .page-title {
        font-size: 42px;
    }
}
