/* 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;
}

.field-hint {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
}

.input-divider {
    height: 1px;
    background-color: #374151;
    margin: 8px 0;
}

.input-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #374151;
}

.input-tab {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 150ms ease;
    margin-bottom: -1px;
}

.input-tab:hover {
    color: #e5e7eb;
}

.input-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.tab-panel.active {
    display: flex;
}

.char-count {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.char-count.warning {
    color: #f59e0b;
}

.char-count.error {
    color: #ef4444;
}

.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:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.html-textarea {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
    font-size: 13px;
    min-height: 200px;
    line-height: 1.6;
}

.select-input {
    background-color: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.select-input option {
    background-color: #1a1a1a;
}

.modal-hidden {
    display: none;
}

.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: background-color 150ms ease;
    text-align: center;
}

.pro-features-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

.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;
}

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

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

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

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

.platform-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #374151;
    flex-wrap: wrap;
}

.platform-tab {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 150ms ease;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-tab:hover {
    color: #e5e7eb;
}

.platform-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.platform-tab .pro-badge {
    font-size: 9px;
    padding: 1px 4px;
}

.preview-container {
    min-height: 200px;
}

.preview-card {
    display: none;
}

.preview-card.active {
    display: block;
}

.fb-card {
    background-color: #242526;
    border: 1px solid #3e4042;
    border-radius: 8px;
    overflow: hidden;
    max-width: 500px;
}

.fb-image-container {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #18191a;
    position: relative;
    overflow: hidden;
}

.fb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.fb-image.loaded {
    display: block;
}

.fb-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    font-size: 14px;
}

.fb-body {
    padding: 12px 16px;
}

.fb-site-name {
    font-size: 12px;
    font-weight: 400;
    color: #65676b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.fb-title {
    font-size: 16px;
    font-weight: 600;
    color: #e4e6eb;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-description {
    font-size: 14px;
    font-weight: 400;
    color: #b0b3b8;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-card {
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
}

.tw-large {
    border: 1px solid #2f3336;
}

.tw-image-container {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #16181c;
    position: relative;
    overflow: hidden;
}

.tw-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.tw-image.loaded {
    display: block;
}

.tw-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71767b;
    font-size: 14px;
}

.tw-body {
    padding: 12px 16px;
    background-color: #16181c;
    border-top: 1px solid #2f3336;
}

.tw-title {
    font-size: 15px;
    font-weight: 400;
    color: #e7e9ea;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tw-description {
    font-size: 14px;
    font-weight: 400;
    color: #71767b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.tw-domain {
    font-size: 13px;
    color: #71767b;
}

.tw-summary {
    display: flex;
    border: 1px solid #2f3336;
    min-height: 125px;
}

.tw-summary-image-container {
    width: 125px;
    min-height: 125px;
    background-color: #16181c;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-right: 1px solid #2f3336;
}

.tw-summary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.tw-summary-image.loaded {
    display: block;
}

.tw-summary-body {
    padding: 12px 16px;
    background-color: #16181c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.li-card {
    background-color: #1b1f23;
    border: 1px solid #38434f;
    border-radius: 2px;
    overflow: hidden;
    max-width: 500px;
}

.li-image-container {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #0d0f11;
    position: relative;
    overflow: hidden;
}

.li-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.li-image.loaded {
    display: block;
}

.li-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.li-body {
    padding: 12px 16px;
}

.li-title {
    font-size: 14px;
    font-weight: 600;
    color: #e7e9ea;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li-site-name {
    font-size: 12px;
    font-weight: 400;
    color: #71767b;
}

.dc-card {
    display: flex;
    max-width: 500px;
    background-color: #2b2d31;
    border-radius: 4px;
    overflow: hidden;
}

.dc-border {
    width: 4px;
    background-color: #5865f2;
    flex-shrink: 0;
}

.dc-content {
    padding: 12px 16px;
    flex: 1;
    min-width: 0;
}

.dc-site-name {
    font-size: 12px;
    font-weight: 400;
    color: #b5bac1;
    margin-bottom: 4px;
}

.dc-title {
    font-size: 16px;
    font-weight: 600;
    color: #00a8fc;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dc-description {
    font-size: 14px;
    font-weight: 400;
    color: #dbdee1;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dc-image-container {
    border-radius: 4px;
    overflow: hidden;
    max-width: 400px;
}

.dc-image {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 4px;
}

.dc-image.loaded {
    display: block;
}

.sl-card {
    display: flex;
    max-width: 500px;
    background-color: #1a1d21;
    border-radius: 4px;
    overflow: hidden;
}

.sl-border {
    width: 4px;
    background-color: #36c5f0;
    flex-shrink: 0;
}

.sl-content {
    padding: 8px 16px;
    flex: 1;
    min-width: 0;
}

.sl-site-name {
    font-size: 13px;
    font-weight: 700;
    color: #d1d2d3;
    margin-bottom: 4px;
}

.sl-title {
    font-size: 15px;
    font-weight: 400;
    color: #1d9bd1;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sl-description {
    font-size: 14px;
    font-weight: 400;
    color: #d1d2d3;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sl-image-container {
    border-radius: 4px;
    overflow: hidden;
    max-width: 360px;
}

.sl-image {
    width: 100%;
    height: auto;
    display: none;
    border-radius: 4px;
}

.sl-image.loaded {
    display: block;
}

.wa-card {
    background-color: #202c33;
    border-radius: 8px;
    overflow: hidden;
    max-width: 340px;
}

.wa-image-container {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    background-color: #111b21;
    position: relative;
    overflow: hidden;
}

.wa-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.wa-image.loaded {
    display: block;
}

.wa-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8696a0;
    font-size: 14px;
}

.wa-body {
    padding: 8px 12px 10px;
}

.wa-title {
    font-size: 14px;
    font-weight: 600;
    color: #e9edef;
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wa-description {
    font-size: 13px;
    font-weight: 400;
    color: #8696a0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.wa-url {
    font-size: 12px;
    font-weight: 400;
    color: #25d366;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.pro-feature-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    min-width: 140px;
}

.pro-feature-btn .pro-badge {
    font-size: 9px;
    padding: 1px 4px;
}

.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comparison-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #d1d5db;
}

.comparison-sets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-set {
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
}

.comparison-set-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.warnings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warnings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
}

.warning-item.warning-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.warning-item.warning-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.warning-item.warning-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.warning-icon {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
}

.warning-text {
    flex: 1;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    background-color: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.template-item:hover {
    background-color: #252525;
    border-color: #3b82f6;
}

.template-name {
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
}

.template-desc {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.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;
}

.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;
}

@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;
    }

    .output-section {
        padding: 16px;
    }

    .platform-tabs {
        gap: 0;
    }

    .platform-tab {
        padding: 8px 10px;
        font-size: 12px;
    }

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

    .pro-feature-btn {
        width: 100%;
    }

    .fb-card,
    .tw-card,
    .li-card,
    .dc-card,
    .sl-card,
    .wa-card {
        max-width: 100%;
    }

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

        padding: 0 16px;
    }

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

@media (max-width: 480px) {
    .platform-tab {
        padding: 8px 6px;
        font-size: 11px;
    }

    .platform-tab .pro-badge {
        display: none;
    }

    .tw-summary {
        flex-direction: column;
    }

    .tw-summary-image-container {
        width: 100%;
        min-height: 80px;
        aspect-ratio: 1 / 1;
        border-right: none;
        border-bottom: 1px solid #2f3336;
    }
}