/* Custom Styles for Color Combos Explorer */

.color-combos-container {
    padding: 30px 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Header & Controls */
.combos-header {
    text-align: center;
    margin-bottom: 40px;
}

.combos-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #111;
    background: linear-gradient(135deg, #111 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.combos-header p {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Control Bar */
.control-bar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 230, 230, 0.8);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-wrapper {
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 30px;
    border: 1.5px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.search-input:focus {
    border-color: #000;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
    outline: none;
}

/* Category Chips */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
}

.filter-chip:hover {
    background-color: #e5e5e5;
    color: #111;
}

.filter-chip.active {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Sort & Utility Controls */
.utility-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.utility-controls select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    background-color: #fff;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.btn-randomize {
    padding: 10px 20px;
    border-radius: 30px;
    background: #000;
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-randomize:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Layout Grid */
.explorer-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .explorer-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Cards Grid */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* Combo Card */
.combo-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.combo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #dcdcdc;
}

/* Card Header */
.combo-card-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.combo-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.combo-actions {
    display: flex;
    gap: 8px;
}

.btn-card-action {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-card-action:hover {
    color: #111;
    background-color: #f0f0f0;
}

/* Color Bands Layout */
.color-bands {
    display: flex;
    height: 140px;
    position: relative;
    cursor: pointer;
}

.color-band {
    flex: 1;
    position: relative;
    transition: flex 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
}

.color-band:hover {
    flex: 1.8;
}

.color-band-hex {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
}

.color-band:hover .color-band-hex {
    opacity: 1;
    transform: translateY(0);
}

/* Copy Confirmation overlay in band */
.copy-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.copy-overlay.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card Footer info */
.combo-card-footer {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.combo-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.combo-tag {
    font-size: 0.7rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-card-copy-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-card-copy-all:hover {
    color: #000;
}

/* Sticky Preview Panel */
.preview-panel-sticky {
    position: sticky;
    top: 90px; /* Align nicely with sticky headers */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.preview-card-header {
    background: #fafafa;
    padding: 16px;
    border-bottom: 1px solid #eaeaea;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    font-size: 1rem;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-preview {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Mock UI Layout in preview card */
.mock-ui-container {
    padding: 20px;
    background-color: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: background-color 0.4s ease;
}

.mock-ui-header {
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.mock-ui-logo {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.mock-ui-nav {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mock-ui-hero {
    padding: 24px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.mock-ui-hero h4 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.mock-ui-hero p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.4;
    opacity: 0.85;
}

.mock-ui-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mock-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mock-btn-secondary {
    background: transparent;
    border: 1px solid currentColor;
}

.mock-ui-card {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mock-ui-card-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.mock-ui-card-text {
    font-size: 0.75rem;
    line-height: 1.4;
}

.preview-colors-list {
    display: flex;
    padding: 12px 20px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    justify-content: space-between;
    gap: 10px;
}

.preview-color-pill {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.preview-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.btn-preview-action {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #444;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-preview-action:hover {
    background-color: #f5f5f5;
    color: #111;
}

.btn-preview-action-primary {
    background-color: #000;
    color: #fff;
    border: none;
}

.btn-preview-action-primary:hover {
    background-color: #222;
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-wrapper {
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-wrapper {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #888;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.export-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.export-tab {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    margin-bottom: -1px;
}

.export-tab.active {
    color: #000;
    border-bottom-color: #000;
}

.export-code-area {
    width: 100%;
    height: 180px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 12px;
    resize: none;
    outline: none;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* Custom CSS/Bulma fixes */
.hero.is-fullheight {
    min-height: auto !important;
}

/* Custom toast notification */
.cc-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -44%) scale(0.88);
    background: #111;
    color: #fff;
    padding: 13px 22px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    max-width: 90vw;
}

.cc-toast i {
    font-size: 1rem;
    color: #4ade80;
    flex-shrink: 0;
}

.cc-toast--visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* SEO content style additions */
.seo-content-section h2 {
    border-bottom: 3px solid #000 !important;
}
.seo-content-section h3 {
    border-left: 4px solid #000 !important;
}

/* Empty results - centered in the grid area */
#combosGrid {
    min-height: 320px;
    position: relative;
}

.combos-grid-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 100%;
}

.combos-grid-empty i {
    display: block;
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 14px;
}

.combos-grid-empty p {
    font-size: 1.05rem;
    color: #999;
    font-weight: 500;
}
