/* Tool-specific styles only - base styles are in tool-layout.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0a;
    color: #e5e7eb;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #141414;
    border-bottom: 1px solid #374151;
    z-index: 100;
}

    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

    margin-top: 60px;
    padding: 48px 24px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    max-width: 720px;
    margin: 0 auto;
}

.tool-main {
    flex: 1;
    padding: 32px 24px 120px;
}

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

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

.filter-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.filter-btn:hover:not(.active) {
    background-color: #374151;
}

.filter-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.text-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.text-input-label {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.text-input::placeholder {
    color: #6b7280;
}

.textarea-input {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

.sliders-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.setting-item > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.setting-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.setting-content > label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

input[type="range"].slider {
    width: 100%;
    height: 4px;
    background-color: #374151;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: block;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"].slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"].slider:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.color-pickers {
    display: flex;
    gap: 16px;
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.color-picker-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #374151;
    border-radius: 6px;
    background-color: #141414;
    cursor: pointer;
    padding: 4px;
    transition: border-color 150ms ease;
}

.color-picker-group input[type="color"]:hover:not(:disabled) {
    border-color: #3b82f6;
}

.color-picker-group input[type="color"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pro-feature {
    position: relative;
    opacity: 0.6;
}

.pro-feature.unlocked {
    opacity: 1;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.output-section {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-section h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #d1d5db;
}

.selected-pairing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-panel {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-font-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-info-heading,
.font-info-body {
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-name {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
}

.font-category {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: capitalize;
    padding: 2px 8px;
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 4px;
}

.preview-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    word-break: break-word;
}

.preview-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #d1d5db;
    word-break: break-word;
}

.code-output {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-output h3 {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.code-block {
    background-color: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-all;
}

.copy-btn {
    align-self: flex-start;
    transition: all 150ms ease;
}

.copy-btn.copied {
    background-color: #059669;
    border-color: #059669;
    color: #ffffff;
}

.button-primary {
    background-color: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease;
    text-align: center;
}

.button-secondary {
    background-color: #1a1a1a;
    color: #e5e7eb;
    border: 1px solid #374151;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
    text-align: center;
}

.pairings-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pairings-section > h3 {
    font-size: 22px;
    font-weight: 600;
    color: #d1d5db;
}

.pairings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pairing-card {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 150ms ease;
    cursor: pointer;
}

.pairing-card:hover {
    border-color: #3b82f6;
}

.pairing-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.pairing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pairing-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.pairing-card-tag {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: capitalize;
    padding: 2px 8px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 4px;
}

.pairing-card-preview {
    background-color: #0a0a0a;
    border: 1px solid #262626;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pairing-card-heading {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.pairing-card-body {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #d1d5db;
}

.pairing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pairing-card-fonts {
    font-size: 12px;
    color: #6b7280;
}

.pairing-card-select {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.pairing-card-select:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.pairing-card-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-preview-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-preview-section > .setting-content {
    gap: 12px;
}

.page-preview-panel {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 32px 24px;
}

.page-preview-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-preview-content .page-h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.page-preview-content .page-h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #d1d5db;
}

.page-preview-content .page-h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #d1d5db;
    margin-top: 8px;
}

.page-preview-content .page-p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #e5e7eb;
}

.page-preview-content .page-blockquote {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #d1d5db;
    font-style: italic;
    border-left: 3px solid #3b82f6;
    padding-left: 20px;
    margin: 4px 0;
}

.page-preview-content .page-list {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #e5e7eb;
    padding-left: 24px;
}

.page-preview-content .page-list li {
    margin-bottom: 4px;
}

.page-preview-content .page-caption {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #6b7280;
}

.token-export-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.token-export-section > .setting-content {
    gap: 12px;
}

.token-format-toggle {
    display: flex;
    gap: 8px;
}

.token-format-btn {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.token-format-btn:hover:not(.active) {
    background-color: #374151;
}

.token-format-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.token-actions {
    display: flex;
    gap: 12px;
}

.pro-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.pro-cta-text {
    font-size: 14px;
    color: #d1d5db;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-overlay.modal-hidden {
    display: none;
}

.modal-overlay.modal-visible {
    display: flex;
}

.modal {
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 0;
    max-width: 480px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 150ms ease;
}

.modal-close:hover {
    color: #e5e7eb;
}

.modal-content {
    padding: 24px;
}

.pro-features-list {
    margin-bottom: 24px;
}

.pro-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.feature-check {
    width: 20px;
    height: 20px;
    background-color: #059669;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: #e5e7eb;
}

.modal-cta {
    width: 100%;
    display: block;
}

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid #374151;
    padding: 32px 24px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
}

.modal-hidden {
    display: none;
}

@media (max-width: 768px) {
        padding: 32px 16px;
    }

        font-size: 28px;
        line-height: 36px;
    }

        font-size: 14px;
    }

    .tool-main {
        padding: 24px 16px 100px;
    }

    .tool-container {
        gap: 32px;
    }

    .sliders-group {
        padding: 16px;
    }

    .output-section {
        padding: 16px;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pairing-card {
        padding: 16px;
    }

    .pairing-card-heading {
        font-size: 18px;
    }

    .preview-heading {
        font-size: 28px;
    }

    .preview-panel {
        padding: 24px 16px;
    }

    .page-preview-panel {
        padding: 24px 16px;
    }

    .page-preview-content .page-h1 {
        font-size: 28px;
    }

    .page-preview-content .page-h2 {
        font-size: 22px;
    }

    .page-preview-content .page-h3 {
        font-size: 18px;
    }

    .token-actions {
        flex-direction: column;
    }

    .pro-cta-content {
        flex-direction: column;
        gap: 10px;
    }

        padding: 0 16px;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .code-block {
        padding: 12px;
    }

    .code-block pre {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .color-pickers {
        flex-direction: column;
    }

    .pairing-card-header {
        flex-wrap: wrap;
    }

    .pairing-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pairing-card-select {
        width: 100%;
        text-align: center;
    }
}