/* Quartzolar Color Gallery - Frontend Styles */

.qcg-gallery-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.qcg-gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.qcg-gallery-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.qcg-gallery-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0;
}

.qcg-tabs-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.qcg-tabs-nav {
    display: flex;
    gap: 15px;
    background: transparent;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    overflow-x: auto;
    scrollbar-width: none;
}

.qcg-tabs-nav::-webkit-scrollbar {
    display: none;
}

.qcg-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.qcg-tab-button:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

.qcg-tab-button.active {
    background: #FF6419;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.qcg-tab-button.active::after {
    display: none;
}

.qcg-tabs-content {
    padding: 0;
}

.qcg-tab-panel {
    display: none;
}

.qcg-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.qcg-gallery-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 30px;
}

@media (max-width: 968px) {
    .qcg-gallery-content {
        grid-template-columns: 1fr;
    }
}

.qcg-image-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qcg-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.qcg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qcg-main-image {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
}

.qcg-colors-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.qcg-colors-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.qcg-colors-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qcg-color-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.qcg-color-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    border-color: #dee2e6;
}

.qcg-color-item.active {
    background: #e7f3ff;
    border-color: #FF6419;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.qcg-color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.qcg-color-item:hover .qcg-color-swatch {
    transform: scale(1.1);
}

.qcg-color-item.active .qcg-color-swatch {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.qcg-color-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qcg-color-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

.qcg-product-link {
    font-size: 0.8rem;
    color: #FF6419;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qcg-product-link:hover {
    color: #1976D2;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .qcg-gallery-title {
        font-size: 2rem;
    }
    
    .qcg-gallery-subtitle {
        font-size: 1rem;
    }
    
    .qcg-colors-panel {
        padding: 20px;
        max-height: 400px;
        overflow-y: auto;
    }
    
    .qcg-tabs-nav {
        padding: 8px;
    }
    
    .qcg-tab-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .qcg-gallery-content {
        padding: 20px;
    }
    
    .qcg-image-container {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .qcg-gallery-container {
        padding: 15px;
    }
    
    .qcg-gallery-title {
        font-size: 1.75rem;
    }
    
    .qcg-color-item {
        padding: 12px;
    }
    
    .qcg-color-swatch {
        width: 40px;
        height: 40px;
    }
    
    .qcg-tab-button {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}
