/**
 * GCC Wedding Template Picker CSS
 * Wedding-specific overrides + SVG icon styles
 *
 * @version 1.1.0
 */

/* ═══════════════════════════════════════════════
   Wedding modal accent
   ═══════════════════════════════════════════════ */
.gcc-wedding-modal .gcc-modal-container {
    border-top: 4px solid #d4af37;
}

.gcc-wedding-modal .gcc-modal-title {
    color: #8b4513;
}

/* ═══════════════════════════════════════════════
   SVG Icon System (.gcc-wic)
   ═══════════════════════════════════════════════ */

/* Wrapper inside .gcc-file-icon */
.gcc-wic-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
}

/* The <svg> element itself */
/* Nhỏ hơn folder icon (48px) nhưng lớn hơn file icon thường (32px) */
.gcc-wic {
    width: 40px;
    height: 40px;
    overflow: visible;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

/* Hover lift + glow */
.gcc-wedding-file-item:hover .gcc-wic {
    transform: scale(1.12) translateY(-3px);
    filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.35));
}

/* Selected state: golden glow */
.gcc-wedding-file-item.gcc-file-selected .gcc-wic {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
}

/* Emoji fallback */
.gcc-wic-emoji {
    font-size: 38px;
    line-height: 1;
    display: block;
}

/* ═══════════════════════════════════════════════
   File grid — wedding specific sizing
   ═══════════════════════════════════════════════ */
.gcc-wedding-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

/* Slightly taller cards to accommodate SVG */
.gcc-wedding-file-item {
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    position: relative;
}

.gcc-wedding-file-item.gcc-animate-in {
    opacity: 1;
    transform: translateY(0);
}

.gcc-wedding-file-item:hover {
    border-color: #d4af37;
    background: #fffdf5;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.18);
    transform: translateY(-3px);
}

.gcc-wedding-file-item.gcc-file-selected {
    background: #fff9e6;
    border-color: #d4af37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.gcc-wedding-file-item .gcc-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #3d2b1f;
    text-align: center;
    line-height: 1.35;
    margin-bottom: 4px;
}

.gcc-wedding-file-item .gcc-file-desc {
    font-size: 11px;
    color: #9b7653;
    text-align: center;
    line-height: 1.4;
}

/* Current badge — gold */
.gcc-file-item.gcc-wedding-file-item .gcc-file-badge {
    background: #d4af37;
    color: #4a2c00;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    position: absolute;
    top: 8px;
    right: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   Folder items — wedding hover
   ═══════════════════════════════════════════════ */
.gcc-wedding-folder-item:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* ═══════════════════════════════════════════════
   Breadcrumbs
   ═══════════════════════════════════════════════ */
.gcc-wedding-breadcrumbs .gcc-breadcrumb-item:hover {
    color: #d4af37;
}

/* ═══════════════════════════════════════════════
   Trigger button
   ═══════════════════════════════════════════════ */
.gcc-wtp-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
}

.gcc-wtp-trigger:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.gcc-wtp-current { flex: 1; }

.gcc-wtp-caret {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s;
}

.gcc-wtp-trigger[aria-expanded="true"] .gcc-wtp-caret {
    transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════
   Section divider — wedding label
   ═══════════════════════════════════════════════ */
.gcc-wedding-modal .gcc-section-divider::after {
    content: '💍 Wedding Styles';
    color: #8b4513;
}

/* ═══════════════════════════════════════════════
   Empty state
   ═══════════════════════════════════════════════ */
.gcc-wedding-modal .gcc-empty-state {
    color: #8b4513;
}

/* ═══════════════════════════════════════════════
   Back button
   ═══════════════════════════════════════════════ */
.gcc-wedding-modal-back:hover {
    background: #f0e6d2;
}

/* ═══════════════════════════════════════════════
   Folder icon drop-shadow
   ═══════════════════════════════════════════════ */
.gcc-wedding-folder-item .gcc-folder-icon {
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .gcc-wtp-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .gcc-wedding-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }

    .gcc-wic {
        width: 32px;
        height: 32px;
    }

    .gcc-wic-wrap {
        width: 42px;
        height: 42px;
    }
}