.color-single-page { padding: 0; } .color-hero { position: relative; z-index: 20; padding: var(--space-xl) 0 var(--space-md) 0; background-color: #fff; } .color-title { font-size: 3rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-text); } .color-description { font-size: 1.1rem; line-height: 1.8; color: #666; margin-bottom: var(--space-lg); max-width: 800px; } .color-preview-large { display: flex; align-items: flex-start; gap: var(--space-md); margin-top: var(--space-lg); } .color-swatch { flex: 1; width: 100%; height: 400px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .color-actions-buttons { position: absolute; top: var(--space-md); right: var(--space-md); display: flex; align-items: center; gap: var(--space-xs); z-index: 10; } .color-expand-btn { width: 34px; height: 34px; border-radius: var(--radius-md); border: none; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; flex-shrink: 0; } .color-expand-btn:hover { background: rgba(255, 255, 255, 0.3); } .color-expand-btn svg { width: 17px; height: 17px; } .color-save-group { display: flex; position: relative; align-items: center; } .color-save-btn { display: flex; align-items: center; gap: var(--space-xs); padding: 6px 12px; height: 34px; border-radius: var(--radius-md) 0 0 var(--radius-md); border: none; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); cursor: pointer; transition: background 0.3s ease; font-size: 0.9rem; font-weight: 500; } .color-save-btn:hover { background: rgba(255, 255, 255, 0.3); } .color-save-btn svg { width: 16px; height: 16px; } .color-save-dropdown-btn { width: 34px; height: 34px; border-radius: 0 var(--radius-md) var(--radius-md) 0; border: none; border-left: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; } .color-save-dropdown-btn:hover { background: rgba(255, 255, 255, 0.3); } .color-save-dropdown-btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; } .color-save-dropdown-btn.active svg { transform: rotate(180deg); } .color-save-group-dropdown-only .color-save-dropdown-btn { border-radius: var(--radius-md); border-left: none; } .color-save-dropdown { position: absolute; top: calc(100% + var(--space-xs)); right: 0; background: #fff; border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); min-width: 220px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 10001; overflow: visible; padding: var(--space-xs) 0; max-height: none; } .color-save-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); } .dropdown-item { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); cursor: pointer; transition: background 0.2s ease; font-size: 0.9rem; color: var(--color-text); position: relative; margin: 0 var(--space-xs); border-radius: var(--radius-sm); } .dropdown-item:hover { background: #f5f5f5; } .dropdown-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-top: 0; } .dropdown-item:last-child:not(.has-submenu) { border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-bottom: 0; } .dropdown-item:first-child:last-child:not(.has-submenu) { border-radius: var(--radius-sm); } .dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; } .dropdown-item span { flex: 1; } .dropdown-item.has-submenu { justify-content: space-between; position: relative; z-index: 10002; } .submenu-arrow { margin-left: auto; } .dropdown-submenu { position: absolute; left: calc(100% + 4px); top: 0; background: #fff; border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); min-width: 180px; opacity: 0; visibility: hidden; transform: translateX(-10px); transition: all 0.3s ease; z-index: 10001; padding: var(--space-xs) 0 var(--space-md) 0; white-space: nowrap; overflow: visible; } .dropdown-submenu .dropdown-item { margin: 0 var(--space-xs); border-radius: var(--radius-sm); } .dropdown-submenu .dropdown-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; } .dropdown-submenu .dropdown-item:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-bottom: var(--space-xs); } .dropdown-submenu .dropdown-item:first-child:last-child { border-radius: var(--radius-sm); } .dropdown-item.has-submenu:hover .dropdown-submenu, .dropdown-item.has-submenu.submenu-open .dropdown-submenu { opacity: 1 !important; visibility: visible !important; transform: translateX(0) !important; } .dropdown-item.has-submenu.submenu-open .dropdown-submenu { opacity: 1 !important; visibility: visible !important; transform: translateX(0) !important; pointer-events: auto !important; } .dropdown-submenu .dropdown-item { padding: var(--space-sm) var(--space-md); } .color-export-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; background: rgba(0, 0, 0, 0.7); opacity: 0; transition: opacity 0.3s ease; align-items: center; justify-content: center; } .color-export-modal.active { display: flex; opacity: 1; } .export-modal-content { background: #fff; border-radius: var(--radius-lg); padding: var(--space-xl); max-width: 500px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .export-modal-content h3 { margin: 0 0 var(--space-lg) 0; font-size: 1.5rem; font-weight: 600; color: var(--color-text); } .export-form { display: flex; flex-direction: column; gap: var(--space-md); } .export-field { display: flex; flex-direction: column; gap: var(--space-xs); } .export-field label { font-size: 0.9rem; font-weight: 600; color: var(--color-text); } .export-field input, .export-field select { padding: var(--space-sm) var(--space-md); border: 1px solid #ddd; border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; } .export-field input:focus, .export-field select:focus { outline: none; border-color: var(--color-link); } .export-actions { display: flex; gap: var(--space-md); justify-content: flex-end; margin-top: var(--space-md); } .export-cancel-btn, .export-generate-btn { padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-md); border: none; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all 0.3s ease; } .export-cancel-btn { background: #f5f5f5; color: var(--color-text); } .export-cancel-btn:hover { background: #e5e5e5; } .export-generate-btn { background: #2563EB; color: #fff; } .export-generate-btn:hover { background: #1d4ed8; } .color-fullscreen-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background: rgba(0, 0, 0, 0.95); opacity: 0; transition: opacity 0.3s ease; } .color-fullscreen-modal.active { display: flex; opacity: 1; } .color-fullscreen-swatch { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; } .color-fullscreen-hex { font-size: 8rem; font-weight: 700; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); font-family: var(--font-base); letter-spacing: 4px; } .color-close-btn { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.15); border: none; border-radius: 8px; color: #fff; cursor: pointer; z-index: 10; transition: background 0.2s ease; } .color-close-btn:hover { background: rgba(255, 255, 255, 0.25); } .color-close-btn svg { width: 24px; height: 24px; } .color-hex-display { font-size: 4rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); font-family: var(--font-base); letter-spacing: 2px; } .color-actions { display: flex; flex-direction: column; gap: var(--space-sm); } .color-action-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #ddd; background: #fff; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .color-action-btn:hover { border-color: var(--color-link); background: var(--color-link); color: #fff; } section { padding: 12px 0; } .section-title { font-size: 2rem; font-weight: 600; margin-bottom: var(--space-lg); color: var(--color-text); } .conversion-table { width: 100%; max-width: 600px; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .conversion-table th { text-align: left; padding: var(--space-md); font-weight: 600; width: 120px; border-bottom: 1px solid #e0e0e0; } .conversion-table td { padding: var(--space-md); border-bottom: 1px solid #e0e0e0; font-family: var(--font-base); font-weight: 400; } .conversion-table tr:last-child th, .conversion-table tr:last-child td { border-bottom: none; } .about-item h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-md); color: var(--color-text); } .about-content { font-size: 1rem; line-height: 1.8; color: #555; } .about-content p { margin-bottom: var(--space-md); } .variation-item { margin-bottom: var(--space-xl); position: relative; } .variation-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-md); color: var(--color-text); } .related-colors-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-md); margin-top: var(--space-lg); } .related-colors-mobile { display: none; } .related-color-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: none; } .color-card.related-color-card:hover { transform: none !important; } .related-color-card:hover { transform: none; } .related-color-preview { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); box-shadow: none; } .related-color-card:hover .related-color-preview { box-shadow: none; } .related-color-hex { display: block; text-align: center; margin-top: var(--space-sm); font-size: 0.9rem; font-weight: 600; color: var(--color-text); font-family: var(--font-base); } .variation-gradient { display: flex; height: 80px; overflow: visible; position: relative; } .variation-gradient-wrapper, .harmony-colors-wrapper, .cvd-comparison-wrapper { position: relative; } @media (min-width: 768px) { .variation-gradient-wrapper .export-colors-btn, .harmony-colors-wrapper .export-colors-btn, .cvd-comparison-wrapper .export-colors-btn { position: absolute; top: -29px; right: 0; z-index: 10; display: flex; } } .gradient-color { flex: 1; position: relative; cursor: pointer; transition: flex 0.3s ease, box-shadow 0.3s ease; } .gradient-color:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); } .gradient-color:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); } .gradient-color:hover { flex: 1.5; z-index: 10; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } #section-variacoes .variation-gradient { box-shadow: none; border: 1px solid #e0e0e0; border-radius: var(--radius-md); overflow: hidden; } #section-variacoes .gradient-color { box-shadow: none !important; transition: flex 0.3s ease; } #section-variacoes .gradient-color:hover { box-shadow: none !important; } #section-harmonias .harmony-colors { box-shadow: none; border: 1px solid #e0e0e0; border-radius: var(--radius-md); overflow: hidden; } #section-harmonias .harmony-color { box-shadow: none !important; transition: flex 0.3s ease; } #section-harmonias .harmony-color:hover { box-shadow: none !important; } #section-daltonismo .cvd-comparison { box-shadow: none; border: 1px solid #e0e0e0; border-radius: var(--radius-md); overflow: hidden; } #section-daltonismo .cvd-original, #section-daltonismo .cvd-simulated { box-shadow: none !important; transition: flex 0.3s ease; } #section-daltonismo .cvd-original:hover, #section-daltonismo .cvd-simulated:hover { box-shadow: none !important; } .gradient-hex { opacity: 0; transition: opacity 0.3s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 600; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); font-family: var(--font-base); pointer-events: none; z-index: 1; } .gradient-color:hover .gradient-hex { opacity: 1; } .gradient-color-target { position: relative; } .gradient-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); z-index: 3; pointer-events: none; opacity: 1; transition: opacity 0.3s ease; } .gradient-color:hover .gradient-dot { opacity: 0; } .copy-checkmark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); color: #fff; font-size: 2rem !important; font-weight: 700 !important; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); opacity: 0; transition: all 0.3s ease; pointer-events: none; z-index: 2; line-height: 1; } .copy-checkmark.show { opacity: 1; transform: translate(-50%, -50%) scale(1); } .gradient-color .copy-checkmark, .harmony-color .copy-checkmark, .cvd-original .copy-checkmark, .cvd-simulated .copy-checkmark { font-size: 2rem !important; font-weight: 700 !important; } .gradient-color:has(.copy-checkmark.show) .gradient-hex, .harmony-color:has(.copy-checkmark.show) .harmony-hex, .cvd-original:has(.copy-checkmark.show) .cvd-hex, .cvd-simulated:has(.copy-checkmark.show) .cvd-hex { opacity: 0 !important; } .variation-hex-link, .variation-hex-text { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; font-weight: 500; color: #000; font-family: var(--font-base); text-decoration: none; opacity: 0.7; transition: opacity 0.2s ease; pointer-events: auto; white-space: nowrap; z-index: 10; } .variation-hex-link:hover { opacity: 1; text-decoration: underline; } .variation-gradient { margin-bottom: 25px; } @media (max-width: 767px) { .variation-hex-link, .variation-hex-text { display: none; } .variation-gradient { margin-bottom: 16px; } } .harmonies-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } .harmony-item { background: transparent; padding: 0; border-radius: 0; box-shadow: none; display: grid; grid-template-rows: auto auto 80px; align-content: start; } .harmony-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-sm); color: var(--color-text); } .harmony-description { margin-bottom: var(--space-md); color: #111111; font-size: 0.95rem; line-height: 1.6; height: 4.8em; overflow: hidden; } .harmony-colors { display: flex; gap: 0; flex-wrap: nowrap; height: 80px; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); align-self: end; } .harmony-color { flex: 1; min-width: 0; height: 100%; border-radius: 0; display: flex; align-items: center; justify-content: center; box-shadow: none; position: relative; cursor: pointer; transition: flex 0.3s ease, box-shadow 0.3s ease; } .harmony-color:hover { flex: 1.5; z-index: 10; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .harmony-hex { opacity: 0; transition: opacity 0.3s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 600; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); font-family: var(--font-base); pointer-events: none; z-index: 1; } .harmony-color:hover .harmony-hex { opacity: 1; } .harmony-color-target { position: relative; } .harmony-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); z-index: 3; pointer-events: none; opacity: 1; transition: opacity 0.3s ease; } .harmony-color:hover .harmony-dot { opacity: 0; } .harmony-color span { color: #fff; font-weight: 600; font-size: 0.9rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); font-family: var(--font-base); } .color-content-wrapper { position: relative; z-index: 5; display: flex; flex-direction: column; } .color-technical-description { margin-bottom: 0; } .technical-description-content p { margin-bottom: 5px; } @media (max-width: 767px) { .color-content-wrapper { display: flex; flex-direction: column; } .color-content-wrapper > .color-sections-content { display: contents; } .color-content-wrapper .color-sections-content > .container { display: contents; } .color-content-wrapper #section-conversao { order: 1; } .color-content-wrapper > .color-sections-nav { order: 2; z-index: 50; background: var(--color-bg) !important; isolation: isolate; } .color-content-wrapper > .color-technical-description { order: 3; } .color-content-wrapper #section-variacoes { order: 4; margin-bottom: var(--space-md); } .color-content-wrapper .color-section:not(#section-conversao):not(#section-variacoes) { order: 5; } } .cvd-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); } .cvd-item { background: transparent; padding: 0; border-radius: 0; box-shadow: none; } .cvd-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--space-md); color: var(--color-text); } .cvd-comparison { display: flex; gap: 0; height: 80px; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .cvd-labels { display: flex; gap: 0; margin-top: var(--space-sm); text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--color-text); } .cvd-label-original, .cvd-label-simulated { flex: 1; } .cvd-original, .cvd-simulated { flex: 1; height: 100%; border-radius: 0; display: flex; align-items: center; justify-content: center; box-shadow: none; position: relative; cursor: pointer; transition: flex 0.3s ease, box-shadow 0.3s ease; } .cvd-original:hover, .cvd-simulated:hover { flex: 1.5; z-index: 10; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } .cvd-color-target { position: relative; } .cvd-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); z-index: 3; pointer-events: none; opacity: 1; transition: opacity 0.3s ease; } .cvd-original:hover .cvd-dot, .cvd-simulated:hover .cvd-dot { opacity: 0; } .cvd-original span, .cvd-simulated span { color: #fff; font-weight: 600; font-size: 1rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); font-family: var(--font-base); } .cvd-hex { opacity: 0; transition: opacity 0.3s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 600; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); font-family: var(--font-base); pointer-events: none; z-index: 1; } .cvd-original:hover .cvd-hex, .cvd-simulated:hover .cvd-hex { opacity: 1; } .contrast-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-xl); } .contrast-item { background: #fff; border-radius: var(--radius-md); overflow: visible; } .contrast-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-md); } .contrast-header h3 { font-size: 1.25rem; font-weight: 600; color: var(--color-text); margin: 0; } .contrast-rating-badge { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 12px; text-transform: uppercase; letter-spacing: 0.5px; } .contrast-rating-1, .contrast-rating-2 { background-color: #fef2f2; color: #dc2626; } .contrast-rating-3, .contrast-rating-4 { background-color: #fffbeb; color: #d97706; } .contrast-rating-5 { background-color: #f0fdf4; color: #16a34a; } .contrast-preview { padding: var(--space-xl); min-height: 200px; display: flex; flex-direction: column; justify-content: center; border-radius: var(--radius-md); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin-bottom: var(--space-sm); } .contrast-preview-white { border: 1px solid #e5e5e5; } .contrast-shapes { display: flex; justify-content: center; align-items: center; gap: var(--space-lg); margin-bottom: var(--space-lg); flex-wrap: wrap; } .contrast-shape { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; } .contrast-shape-circle { border-radius: 50%; } .contrast-shape-square { border-radius: var(--radius-sm); } .contrast-shape-triangle { width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid; background: none !important; } .contrast-shape-x { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; } .contrast-shape-x svg { width: 100%; height: 100%; } .contrast-text { text-align: center; font-size: 1rem; line-height: 1.6; } .contrast-text strong { font-weight: 700; } .contrast-details { padding: 0; margin: 0; } .contrast-ratio { font-size: 0.9rem; display: flex; align-items: center; gap: var(--space-xs); color: #666; margin: 0; } .contrast-ratio strong { font-weight: 600; color: var(--color-text); } .ratio-value { font-family: var(--font-base); font-weight: 600; } .wcag-compliance-table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); } .wcag-compliance-table thead { background-color: #f5f5f5; } .wcag-compliance-table th { padding: var(--space-md); text-align: left; font-weight: 600; font-size: 0.9rem; color: var(--color-text); border-bottom: 1px solid #e0e0e0; } .wcag-compliance-table th:first-child { width: 60%; } .wcag-compliance-table th:not(:first-child) { text-align: center; width: 20%; } .wcag-compliance-table tbody tr { border-bottom: 1px solid #e0e0e0; } .wcag-compliance-table tbody tr:last-child { border-bottom: none; } .wcag-compliance-table td { padding: var(--space-md); font-size: 0.9rem; color: var(--color-text); } .wcag-compliance-table td:first-child { font-weight: 500; } .wcag-status { text-align: center; } .wcag-icon { display: inline-block; font-size: 1.2rem; line-height: 1; } .wcag-icon.wcag-pass { color: #16a34a; } .wcag-icon.wcag-fail { color: #dc2626; } .contrast-pass { color: #28a745; font-weight: 700; } .contrast-fail { color: #dc3545; font-weight: 700; } .similar-colors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-md); } .similar-color-item { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; display: block; } .similar-color-item:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); } .similar-color-swatch { width: 100%; height: 150px; } .similar-color-info { padding: var(--space-md); } .similar-color-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: var(--space-xs); color: var(--color-text); } .similar-color-hex { font-size: 0.85rem; color: #666; font-family: var(--font-base); } @media (max-width: 768px) { .color-title { font-size: 2rem; } .color-preview-large { flex-direction: column; } .color-swatch { width: 100%; max-width: 400px; height: 400px; aspect-ratio: 1; margin: 0 auto; } .color-actions-buttons { top: var(--space-sm); right: var(--space-sm); gap: var(--space-xs); } .color-expand-btn { width: 28px; height: 28px; } .color-expand-btn svg { width: 14px; height: 14px; } .color-save-btn { height: 28px; padding: 4px 8px; font-size: 0.8rem; } .color-save-btn svg { width: 14px; height: 14px; } .color-save-dropdown-btn { width: 28px; height: 28px; } .color-save-dropdown-btn svg { width: 14px; height: 14px; } .color-save-dropdown { min-width: 180px; right: 0; } .color-dropdown-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 10001; opacity: 0; transition: opacity 0.3s ease; } .color-dropdown-overlay.active { display: block; opacity: 1; } .color-save-dropdown { position: fixed; bottom: 0; left: 0; right: 0; top: auto; width: 100%; max-width: 100%; min-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); height: auto; max-height: none; overflow: visible; z-index: 10002; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); } .color-save-dropdown.active { transform: translateY(0); } .dropdown-submenu { position: fixed; bottom: 0; left: 0; right: 0; top: auto; width: 100%; max-width: 100%; min-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); z-index: 10003; padding: var(--space-sm) var(--space-md); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xs); overflow: visible; height: auto; max-height: none; padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom)); } .dropdown-item.has-submenu:hover .dropdown-submenu, .dropdown-item.has-submenu.submenu-open .dropdown-submenu { transform: translateY(0) !important; opacity: 1 !important; visibility: visible !important; } .color-save-dropdown .dropdown-item.has-submenu:focus, .color-save-dropdown .dropdown-item.has-submenu.submenu-open, .color-save-dropdown .dropdown-item.has-submenu.submenu-open:focus, .color-save-dropdown .dropdown-item.has-submenu:active { outline: none !important; border: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent !important; } .color-save-dropdown .dropdown-item { margin: 0; border-radius: 0; padding: var(--space-md); font-size: 1rem; outline: none; -webkit-tap-highlight-color: transparent; } .color-save-dropdown .dropdown-item.has-submenu:focus, .color-save-dropdown .dropdown-item.has-submenu.submenu-open, .color-save-dropdown .dropdown-item.has-submenu.submenu-open:focus, .color-save-dropdown .dropdown-item.has-submenu:active { outline: none !important; border: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent !important; } .color-save-dropdown .dropdown-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; } .color-save-dropdown .dropdown-item:last-child:not(.has-submenu) { border-radius: 0; } .dropdown-submenu .dropdown-item { margin: 0; border-radius: var(--radius-sm); padding: 0; font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 65px; cursor: pointer; box-sizing: border-box; background: #f5f5f5; transition: background 0.2s ease; outline: none; border: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; } .dropdown-submenu .dropdown-item:hover, .dropdown-submenu .dropdown-item:active, .dropdown-submenu .dropdown-item:focus { background: #e0e0e0; outline: none !important; border: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent !important; } .color-save-dropdown .dropdown-item.has-submenu.submenu-open, .color-save-dropdown .dropdown-item.has-submenu.submenu-open:focus, .color-save-dropdown .dropdown-item.has-submenu.submenu-open:active, .color-save-dropdown .dropdown-item.has-submenu.submenu-open:hover { outline: none !important; border: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent !important; } .color-save-dropdown .dropdown-item.has-submenu.submenu-open *, .color-save-dropdown .dropdown-item.has-submenu.submenu-open *:focus, .color-save-dropdown .dropdown-item.has-submenu.submenu-open *:active { outline: none !important; -webkit-tap-highlight-color: transparent !important; } .dropdown-submenu .dropdown-item:focus-visible { outline: none !important; -webkit-tap-highlight-color: transparent !important; } .dropdown-submenu .dropdown-item svg { display: none; } .dropdown-submenu .dropdown-item span { font-weight: 500; text-align: center; width: 100%; display: flex; align-items: center; justify-content: center; height: 100%; margin: 0; } .dropdown-submenu .dropdown-item:first-child, .dropdown-submenu .dropdown-item:last-child { border-radius: var(--radius-sm); } .color-fullscreen-hex { font-size: 4rem; letter-spacing: 2px; } .color-close-btn { top: 20px; right: 20px; width: 48px; height: 48px; } .color-close-btn svg { width: 24px; height: 24px; } .color-hex-display { font-size: 3rem; } .color-actions { flex-direction: row; justify-content: center; } .variation-gradient { flex-direction: column; height: auto; overflow: hidden; margin-bottom: 16px; } .variation-item:last-child { margin-bottom: 0; } .gradient-color { width: 100%; height: 50px; min-height: 50px; display: flex; align-items: center; justify-content: center; } .gradient-color:first-child { border-top-left-radius: var(--radius-md); border-top-right-radius: var(--radius-md); border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .gradient-color:last-child { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); } .variation-hex-link, .variation-hex-text { display: none !important; } .gradient-hex { color: #fff !important; font-weight: 700 !important; font-size: 0.95rem !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; display: block !important; opacity: 1 !important; } .gradient-dot { left: 12px; top: 50%; transform: translateY(-50%); } .harmonies-list { grid-template-columns: 1fr; } .harmony-item { display: block; grid-template-rows: unset; } .harmony-colors { flex-direction: column; height: auto; margin-top: var(--space-md); } .harmony-color { width: 100%; height: 50px; min-height: 50px; display: flex; align-items: center; justify-content: center; } .harmony-hex { color: #fff !important; font-weight: 700 !important; font-size: 0.95rem !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; display: block !important; opacity: 1 !important; position: static !important; transform: none !important; } .harmony-dot { left: 12px; top: 50%; transform: translateY(-50%); } .cvd-list { grid-template-columns: 1fr; } .cvd-comparison { flex-direction: column; height: auto; } .cvd-original, .cvd-simulated { width: 100%; height: 50px; min-height: 50px; flex-direction: row; justify-content: center; gap: var(--space-xs); } .cvd-label, .cvd-hex { color: #fff !important; font-weight: 700 !important; font-size: 0.95rem !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; display: block !important; } .cvd-hex { opacity: 1 !important; position: static !important; transform: none !important; } .cvd-dot { left: 12px; top: 50%; transform: translateY(-50%); } .cvd-labels { display: none; } .contrast-list { grid-template-columns: 1fr; } .contrast-preview { min-height: 180px; padding: var(--space-lg); } .contrast-shapes { gap: var(--space-md); margin-bottom: var(--space-md); } .contrast-shape { width: 50px; height: 50px; } .contrast-shape-triangle { border-left-width: 25px; border-right-width: 25px; border-bottom-width: 43px; } .contrast-shape-x { width: 70px; height: 70px; } .contrast-shape-x svg { width: 100%; height: 100%; } .contrast-text { font-size: 0.9rem; } .similar-colors-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .related-colors-desktop { display: none; } .related-colors-mobile { display: grid; } .related-colors-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: var(--space-md); margin-left: 0; margin-right: 0; padding: 0; width: 100%; box-sizing: border-box; } .related-color-card { aspect-ratio: 1; min-width: 0; width: 100%; box-sizing: border-box; } .related-color-preview { width: 100%; min-width: 0; box-sizing: border-box; } .related-color-hex { font-size: 0.75rem; margin-top: 6px; padding: 0 4px; word-break: break-all; } } .variation-header, .harmony-header, .cvd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); margin-bottom: var(--space-md); } @media (min-width: 768px) { .variation-header .export-colors-btn, .harmony-header .export-colors-btn, .cvd-header .export-colors-btn { display: none; } } .export-colors-btn { display: flex; align-items: center; gap: 4.8px; padding: 6px 9.6px; background: transparent; color: #4a4a4a; border: none; border-radius: 4px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; flex-shrink: 0; } .export-colors-btn svg { width: 14px; height: 14px; fill: #4a4a4a; } .export-colors-btn:hover { background: #e0e0e0; color: #000; } .export-colors-btn:hover svg { fill: #000; } .export-colors-btn:active { } .export-colors-btn svg { width: 14px; height: 14px; fill: #4a4a4a; } .export-colors-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .export-colors-modal.active { opacity: 1; visibility: visible; } .export-colors-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .export-colors-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 1000px; width: 90%; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; transform: scale(0.95); transition: transform 0.3s ease; } .export-colors-modal.active .export-colors-content { transform: scale(1); } .export-colors-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); padding-left: var(--space-md, 16px); border-bottom: 1px solid #e0e0e0; } .export-colors-header h2 { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--color-text, #333); } .export-colors-close { background: none; border: none; cursor: pointer; padding: 8px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm, 4px); } .export-colors-close:hover { color: #000; background: #f5f5f5; } .export-colors-close svg { width: 24px; height: 24px; } .export-colors-body { display: grid; grid-template-columns: 240px 1fr 350px; grid-template-rows: 1fr; gap: var(--space-md, 16px); padding: var(--space-md, 16px); overflow-y: auto; flex: 1; align-items: stretch; } .export-colors-column { display: flex; flex-direction: column; min-height: 0; background: transparent; } .export-color-format { min-height: 0; display: flex; flex-direction: column; flex: 1; } .export-format-options { display: flex; flex-direction: column; gap: var(--space-xs, 8px); } .export-format-options h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 var(--space-sm, 12px) 0; color: var(--color-text, #333); } .format-option { display: flex; align-items: flex-start; gap: var(--space-xs, 8px); padding: var(--space-sm, 12px); border: none; border-radius: var(--radius-md, 8px); cursor: pointer; transition: all 0.2s ease; background: #fff; outline: none; -webkit-tap-highlight-color: transparent; } .format-option:focus { outline: none; } .format-option:focus-visible { outline: none; } .format-option:hover { background: #e0e0e0; } .format-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; } .format-option label { cursor: pointer; flex: 1; display: flex; flex-direction: column; gap: 3px; width: 100%; } .format-option label strong { font-size: 1.2rem; font-weight: 600; color: var(--color-text, #333); } .format-option label span { font-size: 0.75rem; color: #666; } .format-option:has(input[type="radio"]:checked) { background: #e0e0e0; } .export-color-format { display: flex; flex-direction: column; gap: var(--space-xs, 8px); flex: 1; min-height: 0; padding-top: 0; position: relative; } .export-color-format h3 { font-size: 1rem; font-weight: 600; margin: 0; color: var(--color-text, #333); } .color-format-tabs { display: flex; gap: var(--space-xs, 8px); border-bottom: none; position: absolute; top: 0; left: 0; right: 0; z-index: 1; } .format-tab { padding: 10px 20px; background: transparent; border: none; border-radius: var(--radius-md, 8px); font-size: 0.9rem; font-weight: 700; color: var(--color-text, #333); cursor: pointer; transition: all 0.2s ease; margin-bottom: 0; outline: none; -webkit-tap-highlight-color: transparent; } .format-tab:focus { outline: none; } .format-tab:focus-visible { outline: none; } .format-tab:hover { background: #e0e0e0; } .format-tab.active { background: #e0e0e0; color: var(--color-text, #333); } .export-colors-list { display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; overflow-y: auto; padding-right: 8px; padding-top: 44px; border-radius: var(--radius-md, 8px); overflow-x: hidden; background: transparent; box-shadow: none; } .export-color-item { width: 100%; height: 50px; min-height: 50px; display: flex; align-items: center; justify-content: center; position: relative; cursor: default; border: none; border-radius: 0; } .export-color-item:first-child { border-top-left-radius: var(--radius-md, 8px); border-top-right-radius: var(--radius-md, 8px); } .export-color-item:last-child { border-bottom-left-radius: var(--radius-md, 8px); border-bottom-right-radius: var(--radius-md, 8px); } .export-color-content { display: flex; align-items: center; justify-content: center; width: 100%; gap: var(--space-sm, 12px); } .export-color-code { font-family: var(--font-base); font-size: 0.95rem; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); display: block; opacity: 1; position: relative; z-index: 1; } .export-copy-icon { display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0.8; transition: opacity 0.2s ease; cursor: pointer; flex-shrink: 0; z-index: 2; position: relative; } .export-copy-icon:hover { opacity: 1; } .export-copy-icon svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); } .export-result { display: flex; flex-direction: column; gap: var(--space-md, 16px); height: 100%; min-height: 0; } .export-result h3 { font-size: 1rem; font-weight: 600; margin: 0 0 var(--space-sm, 12px) 0; color: var(--color-text, #333); } .export-result-wrapper { display: flex; flex-direction: column; gap: var(--space-md, 16px); flex: 1; min-height: 0; } .export-result-text { width: 100%; flex: 1; min-height: 0; padding: var(--space-md, 16px); border: 1px solid #e0e0e0; border-radius: var(--radius-md, 8px); font-family: var(--font-base); font-size: 0.9rem; line-height: 1.6; resize: none; background: #f8f9fa; color: #333; } .export-result-text:focus { outline: 2px solid var(--color-primary, #0073aa); outline-offset: -2px; border-color: var(--color-primary, #0073aa); } .export-copy-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; background: #fff; color: #000; border: 1px solid #e0e0e0; border-radius: var(--radius-md, 8px); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; outline: none; -webkit-tap-highlight-color: transparent; } .export-copy-btn:focus { outline: none; } .export-copy-btn:focus-visible { outline: none; } .export-copy-btn:hover { border-color: #999; } .export-copy-btn:active { transform: translateY(0); } .export-copy-btn.copied { background: #fff; border-color: #28a745; color: #28a745; } .export-copy-btn svg { width: 16px; height: 16px; flex-shrink: 0; } @media (max-width: 1024px) { .export-colors-body { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; } .export-format-options { max-height: 300px; overflow-y: auto; } .export-colors-list { max-height: none; } .export-result-text { min-height: 300px; } } @media (max-width: 767px) { .export-colors-content { width: 100%; max-height: 100vh; border-radius: 0; } .export-colors-header { padding: var(--space-sm, 12px) var(--space-md, 16px); } .export-colors-header h2 { font-size: 0.9rem; } .export-colors-body { padding: var(--space-md, 16px); gap: var(--space-xs, 8px); } .export-format-options { display: flex; flex-direction: row; gap: var(--space-xs, 8px); overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; } .export-format-options h3 { display: none; } .format-option { flex: 0 0 auto; min-width: 0; padding: var(--space-xs, 8px) var(--space-sm, 12px); white-space: nowrap; } .format-option label { gap: 2px; } .format-option label strong { font-size: 0.65rem; } .format-option label span { display: none; } .format-option[data-format="codes-only"] label strong::after { content: ""; } .format-option[data-format="codes-only"] label strong { font-size: 0.65rem; } .format-option[data-format="codes-only"] label strong { font-size: 0; } .format-option[data-format="codes-only"] label strong::before { content: "Códigos"; font-size: 0.65rem; } .format-option:has(input[type="radio"]:checked) { background: #e0e0e0; } .export-color-format { gap: var(--space-xs, 8px); } .format-tab.active { background: #e0e0e0; } .color-format-tabs { position: static; background: transparent; z-index: 1; padding: 0; margin-bottom: 4px; box-shadow: none; border: none; justify-content: center; } .export-colors-list { padding-top: 0; } .variation-header, .harmony-header, .cvd-header { flex-direction: column; align-items: stretch; } .variation-header .export-colors-btn, .harmony-header .export-colors-btn, .cvd-header .export-colors-btn { display: none; } .variation-gradient-wrapper .export-colors-btn, .harmony-colors-wrapper .export-colors-btn, .cvd-comparison-wrapper .export-colors-btn { display: flex; position: absolute; bottom: calc(100% + 3.5px); right: 0; z-index: 10; padding: 6px; width: auto; min-width: auto; gap: 0; } .variation-gradient-wrapper .export-colors-btn span, .harmony-colors-wrapper .export-colors-btn span, .cvd-comparison-wrapper .export-colors-btn span { display: none; } } .palette-single-page { padding: 0; } .palette-hero { padding: var(--space-xl) 0 var(--space-md) 0; background-color: #fff; overflow: visible; position: relative; z-index: 1; } .palette-hero .container { overflow: visible; position: relative; z-index: 1; } .palette-title { font-size: 3rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-text); } .palette-subtitle { font-size: 1.1rem; line-height: 1.8; color: #666; margin-bottom: var(--space-lg); max-width: 800px; } .palette-search-wrapper { width: 100%; padding: 0; box-sizing: border-box; margin-bottom: 0; background: #fff; } .palette-search-form { display: block; margin: 0; } .palette-search-container { position: relative; width: 100%; max-width: none; margin: 0; } .palette-search-bar { display: flex; align-items: center; min-height: 48px; border: 1px solid #e0e0e0; border-top: none; border-bottom-color: #e5e5e5; border-radius: var(--radius-md) var(--radius-md) 0 0; background: #fff; } .palette-search-bar:hover { border-color: #d0d0d0; border-top: none; border-bottom-color: #d0d0d0; } .palette-search-bar:focus-within { border-color: #e0e0e0; border-top: none; border-bottom-color: #e5e5e5; } .palette-search-input-wrap { flex: 1; display: flex; align-items: center; min-width: 0; height: 48px; } .palette-search-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 8px 0 12px; flex-shrink: 0; min-width: 0; } .palette-search-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; font-size: 0.8125rem; line-height: 1.2; color: var(--color-text, #333); background: #f0f0f0; border-radius: 999px; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; } .palette-search-tag:hover { background: #e0e0e0; color: var(--color-text, #333); } .palette-search-tag-close { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: -2px -2px -2px 0; font-size: 1.25rem; line-height: 1; color: #666; border-radius: 50%; transition: color 0.2s ease, background 0.2s ease; } .palette-search-tag:hover .palette-search-tag-close { color: #333; background: rgba(0, 0, 0, 0.08); } .palette-search-input { flex: 1; min-width: 0; height: 100%; min-height: 48px; padding: 0 16px 0 44px; font-size: 1rem; font-family: var(--font-base); border: none; border-radius: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 16px center; background-size: 20px 20px; color: var(--color-text, #333); box-sizing: border-box; } .palette-search-input:focus { outline: none; box-shadow: none; } .palette-search-input::placeholder { color: #aaa; } .palette-search-panel { position: absolute; top: 100%; left: 0; right: 0; margin-top: 0; background: #fff; border: 1px solid #e0e0e0; border-top: none; border-radius: 0; box-shadow: none; z-index: 100; max-height: 70vh; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; } .palette-search-panel.is-open { opacity: 1; visibility: visible; } .palette-search-panel-inner { padding: var(--space-md); border-radius: 0; max-height: 70vh; overflow-y: auto; } .palette-filters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); } @media (max-width: 1024px) { .palette-filters-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .palette-filters-grid { grid-template-columns: 1fr; } } .palette-filter-group { display: flex; flex-direction: column; gap: var(--space-sm); } .palette-filter-title { margin: 0 0 4px 0; font-size: 0.9rem; font-weight: 700; color: var(--color-text, #333); } .palette-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; } .palette-filter-btn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 0.8125rem; font-family: var(--font-base); font-weight: 500; color: #444; background: #e8e8e8; border: none; border-radius: var(--radius-sm); text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; } .palette-filter-btn:hover { background: #ddd; color: #222; } .palette-filter-btn.is-active { background: #e3f2fd; color: #1565c0; } .palette-filter-btn.palette-filter-color { padding: 5px 10px; border-radius: var(--radius-sm); border: 1px solid rgba(0, 0, 0, 0.15); transition: opacity 0.2s ease; } .palette-filter-btn.palette-filter-color:hover { opacity: 0.9; } .palette-filter-btn.palette-filter-color.is-active { border-color: rgba(0, 0, 0, 0.35); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15); } .palette-filter-color-name { font-size: 0.8125rem; font-weight: 500; } .palette-filter-color-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; } .palette-filter-empty { font-size: 0.85rem; color: #888; } .palette-filter-counts .palette-filter-btn { min-width: 4.5em; } @media (min-width: 1024px) { body.post-type-archive-palette .site-header .site-header-container, body.taxonomy-palette_category .site-header .site-header-container, body.tax-palette_category .site-header .site-header-container, body.post-type-archive-gradient .site-header .site-header-container { padding-left: 53px; padding-right: 60px; } } @media (min-width: 1024px) { body.post-type-archive-palette .archive-content .container, body.taxonomy-palette_category .archive-content .container, body.tax-palette_category .archive-content .container, body.post-type-archive-gradient .archive-content .container { max-width: none; width: 100%; box-sizing: border-box; } body.post-type-archive-palette .archive-header .container, body.taxonomy-palette_category .archive-header .container, body.tax-palette_category .archive-header .container, body.post-type-archive-gradient .archive-header .container { max-width: none; width: 100%; box-sizing: border-box; } } body.post-type-archive-palette .archive-header .archive-title, body.post-type-archive-palette .archive-header .archive-description, body.taxonomy-palette_category .archive-header .archive-title, body.taxonomy-palette_category .archive-header .archive-description, body.tax-palette_category .archive-header .archive-title, body.tax-palette_category .archive-header .archive-description, body.post-type-archive-gradient .archive-header .archive-title, body.post-type-archive-gradient .archive-header .archive-description { text-align: center; } .gradient-archive-filters.color-filters { margin-bottom: var(--space-lg); padding: var(--space-md) 0; background-color: transparent; border-radius: var(--radius-md); } .gradient-archive-filters .filters-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: var(--space-sm); justify-content: center; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: var(--space-md, 16px); padding-right: var(--space-md, 16px); box-sizing: border-box; } @media (min-width: 1024px) { .gradient-archive-filters .filters-list { padding-left: 60px; padding-right: 60px; } } .gradient-archive-filters .filters-list .gradient-archive-filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: 6px 12px; border-radius: var(--radius-sm); background-color: #f0f0f0; color: var(--color-text, #1a1a1a); border: none; transition: all 0.2s ease; text-decoration: none; min-width: 100px; white-space: nowrap; font-size: 0.9rem; cursor: pointer; font-family: inherit; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn:hover, .gradient-archive-filters .filters-list .gradient-archive-filter-btn.is-active { background-color: #2563eb; color: #fff; border-color: #2563eb; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn[data-category-color]:hover { background-color: var(--category-color) !important; border-color: var(--category-color) !important; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn[data-category-color].is-active { background-color: var(--category-color) !important; border-color: var(--category-color) !important; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn[data-category-color].light-category:hover, .gradient-archive-filters .filters-list .gradient-archive-filter-btn[data-category-color].light-category.is-active { color: #000 !important; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn .category-color-circle { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; transition: opacity 0.2s ease, width 0.2s ease, margin 0.2s ease, padding 0.2s ease; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn:hover .category-color-circle, .gradient-archive-filters .filters-list .gradient-archive-filter-btn.is-active .category-color-circle { opacity: 0 !important; visibility: hidden !important; pointer-events: none; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn .gradient-archive-filter-btn__label { transition: transform 0.2s ease; } .gradient-archive-filters .filters-list .gradient-archive-filter-btn[data-category-color]:hover .gradient-archive-filter-btn__label, .gradient-archive-filters .filters-list .gradient-archive-filter-btn[data-category-color].is-active .gradient-archive-filter-btn__label { transform: translateX(calc(-(12px + var(--space-xs, 4px)) / 2)); } body.post-type-archive-gradient .gradient-card.gradient-card--hidden { display: none !important; } .palettes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-lg); padding: var(--space-md) 0; min-width: 0; } .palettes-grid > * { min-width: 0; } .palettes-grid .palette-card, .palettes-grid .gradient-card { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; } .palettes-grid .palette-card .palette-preview, .palettes-grid .gradient-card .palette-preview { width: 100%; max-width: none; box-sizing: border-box; } .palettes-grid .gradient-card .gradient-card-info, .palettes-grid .gradient-card .palette-info, .palettes-grid .palette-card .palette-info { max-width: none; width: 100%; } .palette-card { background: transparent; border-radius: var(--radius-lg); overflow: visible; } .palette-card .palette-preview { display: flex; flex-direction: row; align-items: stretch; width: 330px; height: 125px; min-height: 125px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; cursor: default; } .palette-card .palette-color-item.gradient-color { flex: 1 1 0; min-width: 0; min-height: 0; height: 100%; align-self: stretch; position: relative; overflow: hidden; cursor: pointer; transition: flex 0.3s ease; } .palette-card .palette-color-item.gradient-color:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); } .palette-card .palette-color-item.gradient-color:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; } .palette-card .palette-color-item.gradient-color:hover { flex: 2.5; z-index: 10; box-shadow: none; } .palette-card .gradient-hex { opacity: 0; transition: opacity 0.3s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 600; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); font-family: var(--font-base); pointer-events: none; z-index: 1; } .palette-card .palette-color-item.gradient-color:hover .gradient-hex { opacity: 1; } .palette-card .palette-color-item.gradient-color .copy-checkmark { font-size: 1.75rem !important; } .palette-card .palette-color-item.gradient-color:has(.copy-checkmark.show) .gradient-hex { opacity: 0 !important; } .palette-card .palette-info { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: 0 0 var(--radius-lg) var(--radius-lg); min-height: 0; width: 100%; max-width: 330px; box-sizing: border-box; } .palette-card .gradient-card-info-text { flex: 1; min-width: 0; } .palette-card .gradient-card-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; } .palette-card .gradient-card-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: none; background: transparent; color: #000; cursor: pointer; border-radius: 4px; transition: color 0.2s ease, background 0.2s ease; } .palette-card .gradient-card-action-btn:hover { color: #000; background: rgba(0, 0, 0, 0.08); } .palette-card .gradient-card-action-btn svg { display: block; } .palette-card .palette-title { margin: 0 0 var(--space-xs); font-size: 0.875rem; font-weight: 600; line-height: 1.3; } .palette-card .palette-card-link { font-size: inherit; color: var(--color-text, #333); text-decoration: none; transition: color 0.2s ease; } .palette-card .palette-card-link:hover { color: var(--color-accent, #0066cc); } .palette-card .palette-excerpt { margin: 0 0 var(--space-xs); font-size: 0.85rem; color: #666; line-height: 1.4; } .palette-card .palette-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); font-size: 0.8rem; color: #888; } .load-more-palettes-wrapper { display: flex; justify-content: center; padding: var(--space-xl) 0; } .load-more-palettes-btn { padding: var(--space-sm) var(--space-xl); font-size: 1rem; font-weight: 600; color: #fff; background: var(--color-accent, #0066cc); border: none; border-radius: var(--radius-md); cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; } .load-more-palettes-btn:hover:not(:disabled) { background: var(--color-accent-dark, #0052a3); } .load-more-palettes-btn:disabled { opacity: 0.7; cursor: wait; } @media (max-width: 1859px) { .palettes-grid { grid-template-columns: repeat(4, 1fr); } } @media (max-width: 1504px) { .palettes-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 1144px) { .palettes-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 767px) { .palettes-grid { grid-template-columns: 1fr; gap: var(--space-md); align-items: stretch; } .palettes-grid .palette-card, .palettes-grid .gradient-card { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; } .palette-card .palette-preview, .gradient-card .palette-preview { width: 100%; height: 125px; min-height: 125px; max-width: 100%; box-sizing: border-box; } .palette-card .palette-preview .palette-color-item.gradient-color, .gradient-card .palette-preview .palette-color-item.gradient-color { height: 100% !important; min-height: 0 !important; } .palette-card .gradient-hex, .gradient-card .gradient-hex { display: none !important; } .palette-card .palette-info, .gradient-card .gradient-card-info, .gradient-card .palette-info { padding: var(--space-xs) var(--space-sm); width: 100%; max-width: none; } .palette-card .palette-title, .gradient-card .gradient-card-title, .gradient-card .palette-title { margin: 0; font-size: 0.875rem; line-height: 1.25; } } .palette-preview-large { margin-top: var(--space-lg); width: 100%; overflow: visible; position: relative; z-index: 1; } .palette-export-btn { position: absolute; top: -34px; right: 0; z-index: 10; } .palette-colors-grid { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: none; position: relative; z-index: 1; background-color: transparent; grid-auto-rows: auto; } .palette-preview-large { } .palette-color-swatch { box-shadow: none !important; } .palette-color-swatch { width: 100%; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; cursor: pointer; overflow: visible; z-index: 1; background-color: inherit; box-shadow: none; min-width: 0; } .palette-colors-grid:empty { display: none; } .palette-colors-grid .palette-color-swatch { border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } .palette-colors-grid.palette-grid-2 .palette-color-swatch:first-child { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-2 .palette-color-swatch:last-child { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-3:not(.palette-more-than-5) .palette-color-swatch:first-child { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-3:not(.palette-more-than-5) .palette-color-swatch:last-child { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4:not(.palette-more-than-5) .palette-color-swatch:first-child { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4:not(.palette-more-than-5) .palette-color-swatch:last-child { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-5:not(.palette-more-than-5) .palette-color-swatch:first-child { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-5:not(.palette-more-than-5) .palette-color-swatch:last-child:not(:nth-last-child(6)) { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-5:not(.palette-more-than-5) .palette-color-swatch:first-child:nth-last-child(6) { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-5:not(.palette-more-than-5) .palette-color-swatch:nth-child(6):last-child { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:first-child:nth-last-child(7) { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: 0; } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(4):nth-last-child(4) { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(5) { border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(7):last-child { border-top-right-radius: 0; border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:first-child:nth-last-child(8) { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: 0; } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(4):nth-last-child(5) { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: 0; } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(5) { border-bottom-left-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(8) { border-top-right-radius: 0; border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:first-child:nth-last-child(9) { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: 0; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(5):nth-last-child(5) { border-top-right-radius: var(--radius-lg) !important; border-bottom-right-radius: var(--radius-lg) !important; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(6):nth-last-child(4) { border-top-left-radius: 0 !important; border-bottom-left-radius: var(--radius-lg) !important; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(9):last-child { border-top-right-radius: 0 !important; border-bottom-right-radius: var(--radius-lg) !important; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:first-child:nth-last-child(10) { border-top-left-radius: var(--radius-lg); border-bottom-left-radius: 0; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(5):nth-last-child(6) { border-top-right-radius: var(--radius-lg); border-bottom-right-radius: 0; } .palette-colors-grid.palette-grid-5.palette-more-than-5:has(.palette-color-swatch:nth-child(10):last-child) .palette-color-swatch:nth-child(6) { border-top-left-radius: 0; border-bottom-left-radius: var(--radius-lg); border-top-right-radius: 0; border-bottom-right-radius: 0; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(10) { border-top-right-radius: 0; border-bottom-right-radius: var(--radius-lg); } .palette-colors-grid.palette-grid-1 .palette-color-swatch:first-child { border-radius: var(--radius-lg); } .palette-color-code-display { font-size: 1.5rem; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); text-align: center; z-index: 2; cursor: pointer; user-select: none; } .palette-color-format-wrapper { position: absolute; top: var(--space-sm, 12px); right: var(--space-sm, 12px); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; display: flex; align-items: center; gap: var(--space-xs, 8px); } .palette-color-swatch:hover .palette-color-format-wrapper, .palette-color-format-wrapper.has-active-dropdown { opacity: 1; visibility: visible; } .palette-color-format-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: none; border-radius: var(--radius-sm, 6px); color: #fff; cursor: pointer; transition: background 0.3s ease; font-size: 0.75rem; font-weight: 600; } .palette-color-format-btn:hover { background: rgba(255, 255, 255, 0.3); } .palette-color-format-btn.active { background: rgba(255, 255, 255, 0.4); } .palette-format-label { white-space: nowrap; } .palette-format-arrow { width: 16px; height: 16px; transition: transform 0.3s ease; } .palette-color-format-btn.active .palette-format-arrow { transform: rotate(180deg); } .palette-color-actions-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: none; border-radius: var(--radius-sm, 6px); color: #fff; cursor: pointer; transition: background 0.3s ease; font-size: 0.75rem; font-weight: 600; width: 28px; height: 28px; } .palette-color-actions-btn:hover { background: rgba(255, 255, 255, 0.3); } .palette-color-actions-btn svg { width: 18px !important; height: 18px !important; min-width: 18px !important; min-height: 18px !important; flex-shrink: 0; } .palette-color-actions-menu { position: fixed; background: #fff; border-radius: var(--radius-md, 8px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); min-width: 180px; opacity: 0; visibility: hidden; transform: none !important; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 99999; padding: var(--space-xs, 8px) 0; overflow: visible; } .palette-color-actions-menu.active { opacity: 1; visibility: visible; } .palette-action-item { display: flex; align-items: center; gap: var(--space-sm, 12px); padding: var(--space-sm, 12px) var(--space-md, 16px); cursor: pointer; transition: background 0.2s ease; font-size: 0.9rem; color: var(--color-text, #333); border-radius: var(--radius-sm, 4px); margin: 0 var(--space-xs, 8px); } .palette-action-item:hover { background: #f5f5f5; } .palette-action-item svg { width: 16px; height: 16px; flex-shrink: 0; } .palette-action-item:first-child { margin-top: 0; } .palette-action-item:last-child { margin-bottom: 0; } .palette-color-fullscreen-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background: rgba(0, 0, 0, 0.95); opacity: 0; transition: opacity 0.3s ease; } .palette-color-fullscreen-modal.active { display: flex; opacity: 1; } .palette-color-fullscreen-swatch { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; } .palette-color-fullscreen-hex { font-size: 8rem; font-weight: 700; text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); font-family: var(--font-base); letter-spacing: 4px; color: #fff; } .palette-color-close-btn { position: absolute; top: var(--space-xl); right: var(--space-xl); width: 39px; height: 39px; border-radius: var(--radius-md); border: none; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.3s ease; color: #fff; } .palette-color-close-btn:hover { background: rgba(255, 255, 255, 0.3); } .palette-color-close-btn svg { width: 20px; height: 20px; } .palette-color-format-dropdown { position: fixed; background: #fff; border-radius: var(--radius-md, 8px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); min-width: 140px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 99999; padding: var(--space-xs, 8px) 0; overflow: visible; transform: none !important; } .palette-color-format-dropdown.active { opacity: 1; visibility: visible; transform: none !important; } .palette-format-item { padding: var(--space-sm, 12px) var(--space-md, 16px); cursor: pointer; transition: background 0.2s ease; font-size: 0.9rem; color: var(--color-text, #333); border-radius: var(--radius-sm, 4px); margin: 0 var(--space-xs, 8px); } .palette-format-item:hover { background: #f5f5f5; } .palette-format-item:first-child { margin-top: 0; } .palette-format-item:last-child { margin-bottom: 0; } .palette-color-link { position: absolute; bottom: var(--space-md); left: 50%; transform: translateX(-50%); padding: 8px 16px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border-radius: var(--radius-md); color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 500; opacity: 0; transition: opacity 0.3s ease; z-index: 3; } .palette-color-swatch:hover .palette-color-link { opacity: 1; } .palette-color-link:hover { background: rgba(255, 255, 255, 0.3); } .palette-colors-list-section { margin-top: var(--space-md); padding-top: 0; } .palette-colors-list-container { background-color: #f5f5f5; padding: var(--space-lg); border-radius: var(--radius-lg); } .palette-colors-list-label { margin-bottom: var(--space-md); font-size: 1.2rem; font-weight: 600; color: var(--color-text); } .palette-colors-squares { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-lg); margin-top: var(--space-md); } .palette-color-item { display: flex; align-items: center; gap: var(--space-sm); width: 100%; } .palette-color-square { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: var(--radius-md); position: relative; cursor: pointer; box-shadow: none; flex-shrink: 0; } .palette-color-square-hex { font-size: 0.75rem; font-weight: 600; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s ease; text-align: center; } .palette-color-square:hover .palette-color-square-hex { opacity: 1; } .palette-color-info { display: flex; flex-direction: column; gap: 4px; } .palette-color-hex-link { color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s ease; } .palette-color-hex-link:hover { color: #1d4ed8; text-decoration: none; } .palette-color-rgb { color: #666; font-size: 0.85rem; } .palette-colors-list-section .palette-color-item { position: relative; } .palette-color-item-actions-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s ease, background 0.2s ease; z-index: 2; } .palette-colors-list-section .palette-color-item:hover .palette-color-item-actions-btn { opacity: 1; } .palette-color-item-actions-btn:hover { background: rgba(0, 0, 0, 0.1); } .palette-color-item-actions-btn svg { width: 14px; height: 14px; } .palette-single-list-actions-menu { position: fixed; z-index: 10001; width: 201px; min-width: 201px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.08); padding: 0.35rem 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease; } .palette-single-list-actions-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; } .palette-single-list-action-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.9rem; color: #1a1a1a; cursor: pointer; transition: background 0.1s ease; position: relative; } .palette-single-list-action-item:hover { background: rgba(0, 0, 0, 0.06); } .palette-single-list-action-item svg { flex-shrink: 0; } .palette-single-list-action-item.has-submenu .submenu-arrow { margin-left: auto; } .palette-single-list-action-submenu { position: absolute; left: 100%; top: 0; margin-left: 2px; min-width: 140px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.08); padding: 0.35rem 0; opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s ease; } .palette-single-list-action-item.has-submenu:hover .palette-single-list-action-submenu { opacity: 1; visibility: visible; } .palette-single-list-action-subitem { padding: 0.4rem 1rem; font-size: 0.85rem; color: #1a1a1a; cursor: pointer; transition: background 0.1s ease; } .palette-single-list-action-subitem:hover { background: rgba(0, 0, 0, 0.06); } @media (max-width: 768px) { .palette-colors-grid { grid-template-columns: 1fr !important; } .palette-color-swatch { height: 200px; border-radius: 0 !important; } .palette-colors-grid .palette-color-swatch:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; } .palette-colors-grid .palette-color-swatch:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; } .palette-color-code-display { font-size: 1rem; } .palette-color-format-wrapper { top: var(--space-md, 16px); right: var(--space-md, 16px); opacity: 1; visibility: visible; } .palette-color-format-btn { padding: 4px 8px; font-size: 0.7rem; } .palette-color-format-dropdown { min-width: 120px; } .palette-color-format-dropdown.active, .palette-color-actions-menu.active { top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important; max-width: 100% !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-colors-list-label { text-align: center; } .palette-colors-squares { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } .palette-color-item { justify-content: center; align-items: center; flex-direction: column; text-align: center; } .palette-color-item .palette-color-square { align-self: center; } .palette-color-item .palette-color-info { margin-top: var(--space-xs); align-items: center; text-align: center; align-self: center; width: fit-content; max-width: 100%; } .palette-color-item .palette-color-info .palette-color-hex-link, .palette-color-item .palette-color-info .palette-color-rgb { text-align: center; display: block; } .palette-color-square { width: 60px; height: 60px; } .palette-color-square-hex { font-size: 0.65rem; } .palette-preview-large .palette-export-btn span, .palette-preview-large .export-colors-btn span { display: none; } .palette-preview-large .palette-export-btn, .palette-preview-large .export-colors-btn { padding: 6px; gap: 0; min-width: auto; } .palette-preview-large .palette-export-btn svg, .palette-preview-large .export-colors-btn svg { width: 18px; height: 18px; } } @media (min-width: 769px) { .palette-grid-1 { grid-template-columns: 1fr !important; } .palette-grid-2 { grid-template-columns: repeat(2, 1fr) !important; } .palette-grid-3 { grid-template-columns: repeat(3, 1fr) !important; } .palette-grid-4 { grid-template-columns: repeat(4, 1fr) !important; } .palette-grid-5 { grid-template-columns: repeat(5, 1fr) !important; } .palette-grid-5:not(.palette-more-than-5) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; width: 100%; max-width: 100%; } .palette-grid-5:not(.palette-more-than-5) .palette-color-swatch { min-width: 0; width: 100%; } .palette-grid-5:not(.palette-more-than-5):has(.palette-color-swatch:nth-child(6)) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } .palette-more-than-5 .palette-color-swatch { aspect-ratio: 1 / 0.7; height: auto; } .palette-grid-4.palette-more-than-5 { grid-template-columns: repeat(4, 1fr) !important; } .palette-grid-5.palette-more-than-5 { grid-template-columns: repeat(5, 1fr) !important; } } .palette-colors-grid:not(.palette-grid-1):not(.palette-grid-2):not(.palette-grid-3):not(.palette-grid-4):not(.palette-grid-5) { grid-template-columns: repeat(5, 1fr); } .palette-info-section { padding: var(--space-lg) 0; background-color: #fff; border-top: 1px solid #e0e0e0; } .palette-meta-info { display: flex; flex-wrap: wrap; gap: var(--space-lg); } .palette-views-info, .palette-colors-count-info { font-size: 0.95rem; color: var(--color-text); } .palette-views-info strong, .palette-colors-count-info strong { font-weight: 600; margin-right: 4px; } .palette-categories-row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-lg); padding-top: var(--space-md); padding-bottom: var(--space-lg); } .palette-categories-row .palette-color-categories-section { flex: 0 1 auto; min-width: 0; } .palette-categories-row .palette-categories-section { flex: 0 1 auto; min-width: 0; margin-left: auto; margin-right: var(--space-xl, 2rem); padding: 0; } .palette-color-categories-section { padding: var(--space-md) 0; background-color: #fff; } .palette-categories-row .palette-color-categories-section { padding: 0; margin: 0; } .palette-color-categories-section .section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-text); } .palette-color-categories-list { display: flex; flex-wrap: wrap; gap: var(--space-md); } .palette-color-category-item { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--radius-md); border: 1px solid rgba(0, 0, 0, 0.1); text-decoration: none; cursor: pointer; transition: opacity 0.2s ease; } .palette-color-category-item:hover { opacity: 0.9; } .palette-color-category-name { font-size: 0.95rem; font-weight: 500; } .palette-categories-section { padding: var(--space-md) 0 var(--space-lg) 0; background-color: #fff; } .palette-categories-row .palette-categories-section { padding: 0; } @media (max-width: 768px) { .palette-categories-row { flex-direction: column; gap: var(--space-md); padding-top: var(--space-md); padding-bottom: var(--space-lg); } .palette-categories-row .palette-categories-section { margin-left: 0; } .palette-categories-row .palette-color-categories-section { padding: 0; } } .palette-categories-section .section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-text); } .palettes-similar-section { padding: var(--space-lg) 0; background-color: var(--color-bg, #fff); } .palettes-similar-title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-text); } .palettes-similar-actions { display: flex; justify-content: center; margin-top: var(--space-xl, 32px); } .palettes-similar-btn { display: inline-block; padding: 14px 28px; background: #e8e8e8; color: #000; font-size: 1rem; font-weight: 600; text-decoration: none; border-radius: 12px; border: none; transition: background 0.2s ease, color 0.2s ease; } .palettes-similar-btn:hover { background: #d0d0d0; color: #000; } .palettes-similar-section .palettes-similar-grid.palettes-grid { grid-template-columns: repeat(4, 1fr); } @media (max-width: 1024px) { .palettes-similar-section .palettes-similar-grid.palettes-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 480px) { .palettes-similar-section .palettes-similar-grid.palettes-grid { grid-template-columns: 1fr; } } @media (max-width: 1023px) { #section-paletas-relacionadas .palettes-similar-grid.palettes-grid { padding-left: 44px; } } .palette-categories-tags { display: flex; flex-wrap: wrap; gap: var(--space-sm); } .palette-category-tag { display: inline-block; padding: 8px 16px; background-color: #f0f0f0; color: var(--color-text); text-decoration: none; border-radius: 20px; font-size: 0.9rem; font-weight: 500; border: 1px solid #e0e0e0; } @media (max-width: 768px) { .palette-color-item { flex-direction: column; align-items: flex-start; } .palette-color-info { margin-top: var(--space-xs); } } .palette-export-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-modal.active { opacity: 1; visibility: visible; } .palette-export-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 600px; width: 90%; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-modal.active .palette-export-content { transform: scale(1); } .palette-export-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-close:hover { color: #000; } .palette-export-close svg { width: 20px; height: 20px; } .palette-export-body { padding: var(--space-lg, 24px); } .palette-export-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md, 16px); } .palette-export-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm, 8px); padding: var(--space-md, 16px); background: #f5f5f5; border: none; border-radius: var(--radius-md, 8px); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; min-height: 100px; } .palette-export-option:hover { background: #e8e8e8; } .palette-export-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #4a4a4a; } .palette-export-icon svg { width: 100%; height: 100%; } .palette-export-icon .fa-swatchbook, .palette-export-icon .fa-regular { font-size: 1.75rem; color: inherit; } .palette-export-label { font-size: 0.9rem; font-weight: 500; color: var(--color-text, #333); text-align: center; } @media (max-width: 768px) { .palette-export-modal { align-items: flex-end; justify-content: center; } .palette-export-content { width: 100%; max-width: 100%; max-height: 85vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-modal.active .palette-export-content { transform: translateY(0); } .palette-export-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm, 12px); } .palette-export-option { min-height: 80px; padding: var(--space-sm, 12px); } .palette-export-icon { width: 32px; height: 32px; } .palette-export-label { font-size: 0.85rem; } .palette-export-pdf-modal { align-items: flex-end; justify-content: center; } .palette-export-pdf-content { width: 100%; max-width: 100%; max-height: 85vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-pdf-modal.active .palette-export-pdf-content { transform: translateY(0); } } .palette-export-pdf-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10001; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-pdf-modal.active { opacity: 1; visibility: visible; } .palette-export-pdf-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-pdf-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 500px; width: 90%; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-pdf-modal.active .palette-export-pdf-content { transform: scale(1); } .palette-export-pdf-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-pdf-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-pdf-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-pdf-close:hover { color: #000; } .palette-export-pdf-close svg { width: 20px; height: 20px; } .palette-export-pdf-body { padding: var(--space-lg, 24px); } .palette-export-pdf-form { display: flex; flex-direction: column; gap: var(--space-lg, 24px); } .palette-export-pdf-field { display: flex; flex-direction: column; gap: var(--space-sm, 8px); } .palette-export-pdf-field label { font-size: 0.95rem; font-weight: 500; color: var(--color-text, #333); } .palette-export-pdf-field input[type="text"] { padding: var(--space-sm, 12px); border: 1px solid #e0e0e0; border-radius: var(--radius-md, 8px); font-size: 0.95rem; transition: border-color 0.2s ease; } .palette-export-pdf-field input[type="text"]:focus { outline: none; border-color: #1d4ed8; } .palette-export-pdf-radio-group { display: flex; gap: var(--space-md, 16px); } .palette-export-pdf-radio-option { display: flex; align-items: center; gap: var(--space-xs, 8px); cursor: pointer; padding: var(--space-sm, 12px); border: 1px solid #e0e0e0; border-radius: var(--radius-md, 8px); transition: border-color 0.2s ease, background 0.2s ease; flex: 1; } .palette-export-pdf-radio-option:hover { background: #f5f5f5; } .palette-export-pdf-radio-option input[type="radio"] { margin: 0; cursor: pointer; } .palette-export-pdf-radio-option input[type="radio"]:checked + span { font-weight: 600; color: #1d4ed8; } .palette-export-pdf-radio-option input[type="radio"] { accent-color: #1d4ed8; } .palette-export-pdf-radio-option.checked { border-color: #1d4ed8; background: #f0f4ff; } .palette-export-pdf-radio-option.checked span { font-weight: 600; color: #1d4ed8; } .palette-export-pdf-actions { display: flex; width: 100%; padding: var(--space-lg, 24px); border-top: 1px solid #e0e0e0; margin-top: var(--space-md, 16px); box-sizing: border-box; } .palette-export-pdf-cancel-btn, .palette-export-pdf-submit-btn { padding: 16px var(--space-lg, 24px); border: none; border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; } .palette-export-pdf-submit-btn { width: 100%; } .palette-export-pdf-cancel-btn { background: #f5f5f5; color: var(--color-text, #333); } .palette-export-pdf-cancel-btn:hover { background: #e8e8e8; } .palette-export-pdf-submit-btn { background: #1d4ed8; color: #fff; } .palette-export-pdf-submit-btn:hover { background: #1e40af; } .palette-export-pdf-radio-option span { font-size: 0.95rem; color: var(--color-text, #333); transition: color 0.2s ease, font-weight 0.2s ease; } .palette-export-image-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10002; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-image-modal.active { opacity: 1; visibility: visible; } .palette-export-image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-image-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 500px; width: 90%; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-image-modal.active .palette-export-image-content { transform: scale(1); } .palette-export-image-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-image-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-image-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-image-close:hover { color: #000; } .palette-export-image-close svg { width: 20px; height: 20px; } .palette-export-image-body { padding: var(--space-lg, 24px); } .palette-export-image-form { display: flex; flex-direction: column; gap: var(--space-lg, 24px); } .palette-export-image-field { display: flex; flex-direction: column; gap: var(--space-sm, 8px); } .palette-export-image-field label { font-size: 0.95rem; font-weight: 500; color: var(--color-text, #333); } .palette-export-image-field input[type="text"] { padding: var(--space-sm, 12px); border: 1px solid #e0e0e0; border-radius: var(--radius-md, 8px); font-size: 0.95rem; transition: border-color 0.2s ease; } .palette-export-image-field input[type="text"]:focus { outline: none; border-color: #1d4ed8; } .palette-export-image-select { padding: var(--space-sm, 12px); border: 1px solid #e0e0e0; border-radius: var(--radius-md, 8px); font-size: 0.95rem; background: #fff; cursor: pointer; } .palette-export-image-select:focus { outline: none; border-color: #1d4ed8; } .palette-export-image-actions { display: flex; width: 100%; padding-top: var(--space-lg, 24px); margin-top: var(--space-md, 16px); border-top: 1px solid #e0e0e0; box-sizing: border-box; } .palette-export-image-cancel-btn, .palette-export-image-submit-btn { padding: 16px var(--space-lg, 24px); border: none; border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; } .palette-export-image-submit-btn { width: 100%; } .palette-export-image-cancel-btn { background: #f5f5f5; color: var(--color-text, #333); } .palette-export-image-cancel-btn:hover { background: #e8e8e8; } .palette-export-image-submit-btn { background: #1d4ed8; color: #fff; } .palette-export-image-submit-btn:hover { background: #1e40af; } .palette-export-css-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10003; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-css-modal.active { opacity: 1; visibility: visible; } .palette-export-css-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-css-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 520px; width: 90%; max-height: 65vh; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-css-modal.active .palette-export-css-content { transform: scale(1); } .palette-export-css-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-css-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-css-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-css-close:hover { color: #000; } .palette-export-css-close svg { width: 20px; height: 20px; } .palette-export-css-body { padding: var(--space-lg, 24px); display: flex; flex-direction: column; gap: var(--space-md, 16px); min-height: 0; } .palette-export-css-code { background: #e8e8e8; border-radius: var(--radius-md, 8px); padding: var(--space-md, 16px); margin: 0; font-family: var(--font-base); font-size: 0.8rem; line-height: 1.5; color: #333; overflow: auto; max-height: 32vh; white-space: pre-wrap; word-break: break-word; border: 1px solid #ddd; scrollbar-width: none; -ms-overflow-style: none; } .palette-export-css-code::-webkit-scrollbar { display: none; } .palette-export-css-code .palette-css-comment { color: #6a7a5a; } .palette-export-css-code .palette-css-cssvar { color: #333; } .palette-export-css-code .palette-css-scssvar { color: #c65d09; } .palette-export-css-code .palette-css-hex { color: #0e639c; } .palette-export-css-code .palette-css-func { color: #0e639c; } .palette-export-css-code .palette-css-keyword { color: #333; } .palette-export-css-actions { display: flex; width: 100%; gap: var(--space-md, 16px); box-sizing: border-box; } .palette-export-css-download-btn, .palette-export-css-copy-btn { flex: 1; min-width: 0; padding: 16px var(--space-lg, 24px); border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; } .palette-export-css-download-btn { background: #fff; color: var(--color-text, #333); border: 1px solid #e0e0e0; } .palette-export-css-download-btn:hover { background: #f5f5f5; border-color: #ccc; } .palette-export-css-copy-btn { background: #1d4ed8; color: #fff; border: none; } .palette-export-css-copy-btn:hover { background: #1e40af; } .palette-export-svg-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10004; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-svg-modal.active { opacity: 1; visibility: visible; } .palette-export-svg-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-svg-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 520px; width: 90%; max-height: 65vh; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-svg-modal.active .palette-export-svg-content { transform: scale(1); } .palette-export-svg-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-svg-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-svg-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-svg-close:hover { color: #000; } .palette-export-svg-close svg { width: 20px; height: 20px; } .palette-export-svg-body { padding: var(--space-lg, 24px); display: flex; flex-direction: column; gap: var(--space-md, 16px); min-height: 0; } .palette-export-svg-code { background: #e8e8e8; border-radius: var(--radius-md, 8px); padding: var(--space-md, 16px); margin: 0; font-family: var(--font-base); font-size: 0.8rem; line-height: 1.5; color: #333; overflow: auto; max-height: 32vh; white-space: pre-wrap; word-break: break-word; border: 1px solid #ddd; scrollbar-width: none; -ms-overflow-style: none; } .palette-export-svg-code::-webkit-scrollbar { display: none; } .palette-export-svg-actions { display: flex; width: 100%; gap: var(--space-md, 16px); box-sizing: border-box; } .palette-export-svg-download-btn, .palette-export-svg-copy-btn { flex: 1; min-width: 0; padding: 16px var(--space-lg, 24px); border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; } .palette-export-svg-download-btn { background: #fff; color: var(--color-text, #333); border: 1px solid #e0e0e0; } .palette-export-svg-download-btn:hover { background: #f5f5f5; border-color: #ccc; } .palette-export-svg-copy-btn { background: #1d4ed8; color: #fff; border: none; } .palette-export-svg-copy-btn:hover { background: #1e40af; } .palette-export-code-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10005; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-code-modal.active { opacity: 1; visibility: visible; } .palette-export-code-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-code-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 520px; width: 90%; max-height: 65vh; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-code-modal.active .palette-export-code-content { transform: scale(1); } .palette-export-code-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-code-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-code-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-code-close:hover { color: #000; } .palette-export-code-close svg { width: 20px; height: 20px; } .palette-export-code-body { padding: var(--space-lg, 24px); display: flex; flex-direction: column; gap: var(--space-md, 16px); min-height: 0; } .palette-export-code-text { background: #e8e8e8; border-radius: var(--radius-md, 8px); padding: var(--space-md, 16px); margin: 0; font-family: var(--font-base); font-size: 0.8rem; line-height: 1.5; color: #333; overflow: auto; max-height: 32vh; white-space: pre-wrap; word-break: break-word; border: 1px solid #ddd; scrollbar-width: none; -ms-overflow-style: none; } .palette-export-code-text::-webkit-scrollbar { display: none; } .palette-export-code-actions { display: flex; width: 100%; gap: var(--space-md, 16px); box-sizing: border-box; } .palette-export-code-download-btn, .palette-export-code-copy-btn { flex: 1; min-width: 0; padding: 16px var(--space-lg, 24px); border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; } .palette-export-code-download-btn { background: #fff; color: var(--color-text, #333); border: 1px solid #e0e0e0; } .palette-export-code-download-btn:hover { background: #f5f5f5; border-color: #ccc; } .palette-export-code-copy-btn { background: #1d4ed8; color: #fff; border: none; } .palette-export-code-copy-btn:hover { background: #1e40af; } .palette-export-tailwind-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10006; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-tailwind-modal.active { opacity: 1; visibility: visible; } .palette-export-tailwind-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-tailwind-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 520px; width: 90%; max-height: 65vh; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-tailwind-modal.active .palette-export-tailwind-content { transform: scale(1); } .palette-export-tailwind-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-tailwind-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-tailwind-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-tailwind-close:hover { color: #000; } .palette-export-tailwind-close svg { width: 20px; height: 20px; } .palette-export-tailwind-body { padding: var(--space-lg, 24px); display: flex; flex-direction: column; gap: var(--space-md, 16px); min-height: 0; } .palette-export-tailwind-row { display: flex; flex-wrap: wrap; gap: var(--space-md, 16px); align-items: flex-end; } .palette-export-tailwind-row .palette-export-tailwind-field { flex: 0 1 auto; min-width: 0; } .palette-export-tailwind-row .palette-export-tailwind-field:first-child { flex: 0 0 auto; } .palette-export-tailwind-row .palette-export-tailwind-field:last-child { flex: 1 1 auto; min-width: 160px; } .palette-export-tailwind-field { display: flex; flex-direction: column; gap: var(--space-sm, 8px); } .palette-export-tailwind-field label { font-size: 0.95rem; font-weight: 500; color: var(--color-text, #333); } .palette-tailwind-version-toggle, .palette-tailwind-code-format { display: inline-flex; position: relative; background: #e8e8e8; border-radius: 6px; padding: 2px; gap: 0; } .palette-tailwind-version-toggle { min-width: 96px; width: 96px; } .palette-tailwind-code-format { min-width: 200px; max-width: 280px; width: 100%; } .palette-tailwind-version-option, .palette-tailwind-format-option { position: relative; z-index: 1; padding: 6px 10px; border: none; background: transparent; border-radius: 5px; font-size: 0.85rem; font-weight: 500; color: #666; cursor: pointer; transition: color 0.2s ease; } .palette-tailwind-version-option:hover, .palette-tailwind-format-option:hover { color: #333; } .palette-tailwind-version-option.active, .palette-tailwind-format-option.active { color: #1d4ed8; } .palette-tailwind-version-toggle::before { content: ''; position: absolute; top: 2px; left: 2px; width: calc((100% - 4px) / 2); height: calc(100% - 4px); background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); transition: transform 0.25s ease; z-index: 0; } .palette-tailwind-version-toggle[data-version="v4"]::before { transform: translateX(100%); } .palette-tailwind-code-format::before { content: ''; position: absolute; top: 2px; left: 2px; width: calc((100% - 4px) / 4); height: calc(100% - 4px); background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); transition: transform 0.25s ease; z-index: 0; } .palette-tailwind-code-format[data-format="rgb"]::before { transform: translateX(100%); } .palette-tailwind-code-format[data-format="hsl"]::before { transform: translateX(200%); } .palette-tailwind-code-format[data-format="oklch"]::before { transform: translateX(300%); } .palette-tailwind-version-toggle .palette-tailwind-version-option:first-child, .palette-tailwind-code-format .palette-tailwind-format-option:nth-child(1) { flex: 1; min-width: 0; } .palette-tailwind-version-toggle .palette-tailwind-version-option:last-child, .palette-tailwind-code-format .palette-tailwind-format-option:nth-child(2) { flex: 1; min-width: 0; } .palette-tailwind-code-format .palette-tailwind-format-option { flex: 1; min-width: 0; } .palette-export-tailwind-code { background: #e8e8e8; border-radius: var(--radius-md, 8px); padding: var(--space-md, 16px); margin: 0; font-family: var(--font-base); font-size: 0.8rem; line-height: 1.5; color: #333; overflow: auto; max-height: 28vh; white-space: pre-wrap; word-break: break-word; border: 1px solid #ddd; scrollbar-width: none; -ms-overflow-style: none; } .palette-export-tailwind-code::-webkit-scrollbar { display: none; } .palette-export-tailwind-actions { display: flex; width: 100%; box-sizing: border-box; } .palette-export-tailwind-copy-btn { width: 100%; background: #1d4ed8; color: #fff; border: none; padding: 16px var(--space-lg, 24px); border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease; } .palette-export-tailwind-copy-btn:hover { background: #1e40af; } .palette-export-embed-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10007; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .palette-export-embed-modal.active { opacity: 1; visibility: visible; } .palette-export-embed-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); } .palette-export-embed-content { position: relative; background: #fff; border-radius: var(--radius-lg, 12px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-width: 520px; width: 90%; max-height: 65vh; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; } .palette-export-embed-modal.active .palette-export-embed-content { transform: scale(1); } .palette-export-embed-header { position: relative; display: flex; justify-content: center; align-items: center; padding: var(--space-sm, 12px) var(--space-lg, 24px); border-bottom: 1px solid #e0e0e0; min-height: 44px; } .palette-export-embed-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--color-text, #333); } .palette-export-embed-close { position: absolute; right: var(--space-sm, 12px); top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; padding: 4px; color: #666; transition: color 0.2s ease; display: flex; align-items: center; justify-content: center; } .palette-export-embed-close:hover { color: #000; } .palette-export-embed-close svg { width: 20px; height: 20px; } .palette-export-embed-body { padding: var(--space-lg, 24px); display: flex; flex-direction: column; gap: var(--space-md, 16px); min-height: 0; } .palette-export-embed-intro { margin: 0; font-size: 0.95rem; color: var(--color-text, #333); line-height: 1.5; } .palette-export-embed-code { background: #e8e8e8; border-radius: var(--radius-md, 8px); padding: var(--space-md, 16px); margin: 0; font-family: var(--font-base); font-size: 0.8rem; line-height: 1.5; color: #333; overflow: auto; max-height: 32vh; white-space: pre-wrap; word-break: break-word; border: 1px solid #ddd; scrollbar-width: none; -ms-overflow-style: none; } .palette-export-embed-code::-webkit-scrollbar { display: none; } .palette-export-embed-actions { display: flex; width: 100%; box-sizing: border-box; } .palette-export-embed-copy-btn { width: 100%; background: #1d4ed8; color: #fff; border: none; padding: 16px var(--space-lg, 24px); border-radius: var(--radius-md, 8px); font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease; } .palette-export-embed-copy-btn:hover { background: #1e40af; } @media (max-width: 768px) { .palette-export-pdf-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-pdf-content { width: 100% !important; max-width: 100% !important; max-height: 85vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-pdf-modal.active .palette-export-pdf-content { transform: translateY(0) !important; } .palette-export-image-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-image-content { width: 100% !important; max-width: 100% !important; max-height: 85vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-image-modal.active .palette-export-image-content { transform: translateY(0) !important; } .palette-export-css-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-css-content { width: 100% !important; max-width: 100% !important; max-height: 65vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-css-modal.active .palette-export-css-content { transform: translateY(0) !important; } .palette-export-svg-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-svg-content { width: 100% !important; max-width: 100% !important; max-height: 65vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-tailwind-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-tailwind-content { width: 100% !important; max-width: 100% !important; max-height: 65vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-tailwind-modal.active .palette-export-tailwind-content { transform: translateY(0) !important; } .palette-export-embed-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-embed-content { width: 100% !important; max-width: 100% !important; max-height: 65vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-embed-modal.active .palette-export-embed-content { transform: translateY(0) !important; } .palette-export-svg-modal.active .palette-export-svg-content { transform: translateY(0) !important; } .palette-export-code-modal { align-items: flex-end !important; justify-content: center !important; } .palette-export-code-content { width: 100% !important; max-width: 100% !important; max-height: 65vh; border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0 !important; transform: translateY(100%) !important; padding-bottom: env(safe-area-inset-bottom, 0); } .palette-export-code-modal.active .palette-export-code-content { transform: translateY(0) !important; } } .palette-colors-grid.palette-grid-1 .palette-color-swatch:last-child, .palette-colors-grid.palette-grid-2 .palette-color-swatch:last-child, .palette-colors-grid.palette-grid-3:not(.palette-more-than-5) .palette-color-swatch:last-child, .palette-colors-grid.palette-grid-4:not(.palette-more-than-5) .palette-color-swatch:last-child, .palette-colors-grid.palette-grid-5:not(.palette-more-than-5) .palette-color-swatch:last-child:not(:nth-last-child(6)), .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(7):last-child, .palette-colors-grid.palette-grid-4.palette-more-than-5 .palette-color-swatch:nth-child(8):last-child { border-bottom-right-radius: var(--radius-lg) !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(9):last-child, .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(10):last-child { } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(5):nth-last-child(5) { border-bottom-right-radius: var(--radius-lg) !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(6):nth-last-child(4) { border-bottom-left-radius: var(--radius-lg) !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(9):last-child { border-bottom-right-radius: var(--radius-lg) !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(5):nth-last-child(5) { border-top-right-radius: var(--radius-lg) !important; border-bottom-right-radius: var(--radius-lg) !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(6):nth-last-child(4) { border-bottom-left-radius: var(--radius-lg) !important; } .palette-colors-grid.palette-grid-5.palette-more-than-5 .palette-color-swatch:nth-child(9):last-child { border-bottom-right-radius: var(--radius-lg) !important; } .gradient-card { background: transparent; border-radius: var(--radius-lg); overflow: visible; } .gradient-card .palette-preview { display: flex; flex-direction: row; align-items: stretch; width: 330px; height: 125px; min-height: 125px; overflow: hidden; border-radius: var(--radius-lg); cursor: default; position: relative; } .gradient-card .gradient-card-gradient-layer { position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; transition: opacity 0.3s ease; } .gradient-card .palette-preview .palette-color-item.gradient-color { flex: 1 1 0; min-width: 0; min-height: 0; height: 100%; align-self: stretch; position: relative; overflow: hidden; cursor: pointer; transition: flex 0.3s ease, opacity 0.3s ease; opacity: 0; z-index: 2; } .gradient-card .palette-preview:hover .gradient-card-gradient-layer { opacity: 0; } .gradient-card .palette-preview:hover .palette-color-item.gradient-color { opacity: 1; } .gradient-card .palette-color-item.gradient-color:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); } .gradient-card .palette-color-item.gradient-color:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; } .gradient-card .palette-color-item.gradient-color:hover { flex: 2.5; z-index: 10; box-shadow: none; } .gradient-card .gradient-hex { opacity: 0; transition: opacity 0.3s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 600; font-size: 0.85rem; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); font-family: var(--font-base); pointer-events: none; z-index: 1; } .gradient-card .palette-color-item.gradient-color:hover .gradient-hex { opacity: 1; } .gradient-card .palette-color-item.gradient-color .copy-checkmark { font-size: 1.75rem !important; } .gradient-card .palette-color-item.gradient-color:has(.copy-checkmark.show) .gradient-hex { opacity: 0 !important; } .gradient-card .gradient-card-info, .gradient-card .palette-info { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); border-radius: 0 0 var(--radius-lg) var(--radius-lg); min-height: 0; width: 100%; max-width: 330px; box-sizing: border-box; } .gradient-card .gradient-card-info-text { flex: 1; min-width: 0; } .gradient-card .gradient-card-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; } .gradient-card .gradient-card-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: none; background: transparent; color: #000; cursor: pointer; border-radius: 4px; transition: color 0.2s ease, background 0.2s ease; } .gradient-card .gradient-card-action-btn:hover { color: #000; background: rgba(0, 0, 0, 0.08); } .gradient-card .gradient-card-action-btn svg { display: block; } .gradient-card .gradient-card-title, .gradient-card .palette-title { margin: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; cursor: pointer; transition: color 0.2s ease; } .gradient-card .gradient-card-title:hover, .gradient-card .palette-title:hover { color: var(--color-accent, #0066cc); } .gradient-card .gradient-card-excerpt, .gradient-card .palette-excerpt { margin: 2px 0 0; font-size: 0.75rem; color: var(--color-text-muted, #666); line-height: 1.3; } .gradient-view-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: var(--space-md); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; } .gradient-view-modal.active { opacity: 1; visibility: visible; } .gradient-view-modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); cursor: pointer; } .gradient-view-modal-content { position: relative; width: 100%; max-width: 480px; max-height: 90vh; background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column; } .gradient-view-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; padding: 0; border: none; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.9); color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); transition: background 0.2s ease; } .gradient-view-modal-close:hover { background: #fff; } .gradient-view-modal-preview { width: 100%; height: 0; padding-bottom: 32%; min-height: 140px; flex-shrink: 0; } .gradient-view-modal-body { padding: var(--space-lg); overflow-y: auto; } .gradient-view-modal-title { margin: 0 0 var(--space-sm); font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: #000; } .gradient-view-modal-desc { margin: 0 0 var(--space-md); font-size: 0.9375rem; line-height: 1.5; color: var(--color-text-muted, #666); } .gradient-view-modal-label { margin: 0 0 var(--space-xs); font-size: 0.875rem; font-weight: 700; color: #000; } .gradient-view-modal-palette { display: flex; flex-wrap: nowrap; gap: 0; margin-bottom: var(--space-md); width: 100%; } .gradient-view-modal-swatch { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; height: 44px; padding: 0 8px; border-radius: 8px; font-size: 0.8125rem; font-weight: 700; font-family: monospace; text-transform: uppercase; color: #000; background: #eee; cursor: pointer; transition: opacity 0.2s ease; user-select: none; } .gradient-view-modal-swatch:not(:first-child) { margin-left: 8px; } .gradient-view-modal-swatch:hover { opacity: 0.9; } .gradient-view-modal-css-wrap { position: relative; background: #f0f0f0; border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px 44px 12px 12px; } .gradient-view-modal-css { margin: 0; font-size: 0.8125rem; font-family: ui-monospace, monospace; white-space: pre-wrap; word-break: break-all; color: #333; } .gradient-view-modal-css-copy { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: none; border-radius: 6px; background: transparent; color: #666; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s ease, background 0.2s ease; } .gradient-view-modal-css-copy:hover { background: rgba(0, 0, 0, 0.08); color: #000; } .gradient-more-actions-menu { position: fixed; z-index: 10002; width: 201px; min-width: 201px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); border: 1px solid rgba(0, 0, 0, 0.08); padding: 0.35rem 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease; } .gradient-more-actions-menu.is-open { opacity: 1; visibility: visible; pointer-events: auto; } .gradient-more-action-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.9rem; color: #1a1a1a; cursor: pointer; transition: background 0.1s ease; } .gradient-more-action-item:hover { background: rgba(0, 0, 0, 0.06); } .gradient-more-action-item svg { flex-shrink: 0; } @media (max-width: 768px) { .gradient-more-actions-menu { top: auto !important; left: 0 !important; right: 0 !important; bottom: 0; width: 100% !important; min-width: 0; max-width: 100%; border-radius: 12px 12px 0 0; transform: translateY(100%); transition: transform 0.35s ease-out, opacity 0.2s ease, visibility 0.2s ease; padding-bottom: env(safe-area-inset-bottom, 0); } .gradient-more-actions-menu.is-open { transform: translateY(0); } } .gradient-archive-fullscreen { position: fixed; inset: 0; z-index: 10004; background: #000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; } .gradient-archive-fullscreen.active { opacity: 1; visibility: visible; } .gradient-archive-fullscreen-preview { position: absolute; inset: 0; } .gradient-archive-fullscreen-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.15); border: none; border-radius: 8px; color: #fff; cursor: pointer; transition: background 0.2s ease; } .gradient-archive-fullscreen-close:hover { background: rgba(255, 255, 255, 0.25); } .gradient-archive-fullscreen-close svg { width: 24px; height: 24px; } @media (max-width: 768px) { .gradient-view-modal { align-items: flex-end; padding: 0; } .gradient-view-modal-content { max-width: 100%; width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; transform: translateY(100%); transition: transform 0.35s ease-out; } .gradient-view-modal.active .gradient-view-modal-content { transform: translateY(0); } .gradient-view-modal-preview { padding-bottom: 45%; min-height: 200px; } .gradient-archive-fullscreen { align-items: flex-end; justify-content: center; } .gradient-archive-fullscreen-preview { transform: translateY(100%); transition: transform 0.35s ease-out; } .gradient-archive-fullscreen.active .gradient-archive-fullscreen-preview { transform: translateY(0); } } .gradient-single-page .gradient-single-hero .container { max-width: var(--container-width, 1200px); margin: 0 auto; padding: var(--space-md); } .gradient-single-title { margin: 0 0 var(--space-md); } .gradient-single-preview-wrap { margin: var(--space-lg) 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); } .gradient-single-preview { width: 100%; height: 280px; min-height: 280px; } .gradient-single-meta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-md); font-size: 0.875rem; color: var(--color-text-muted, #666); } .gradient-single-actions { margin-bottom: var(--space-md); } .gradient-single-css-code { background: var(--color-bg-code, #f5f5f5); padding: var(--space-md); border-radius: var(--radius-md); font-size: 0.8125rem; overflow-x: auto; margin: 0 0 var(--space-lg); } .gradient-single-css-code code { white-space: pre; } @media (max-width: 768px) { .gradient-card { width: 330px; max-width: 100%; margin-left: auto; margin-right: auto; } .gradient-card .palette-preview { width: 330px; height: 125px; min-height: 125px; max-width: 100%; box-sizing: border-box; } .gradient-card .palette-preview .palette-color-item.gradient-color { height: 100% !important; min-height: 0 !important; } .gradient-card .gradient-hex { display: none !important; } .gradient-card .gradient-card-info, .gradient-card .palette-info { padding: var(--space-xs) var(--space-sm); } .gradient-card .gradient-card-title, .gradient-card .palette-title { margin: 0; font-size: 0.875rem; line-height: 1.25; } .gradient-single-preview { height: 180px; min-height: 180px; } }