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

.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: 72px;
    line-height: 1.5;
}

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

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

.char-counter {
    display: flex;
    justify-content: flex-end;
}

.char-count {
    font-size: 13px;
    font-weight: 500;
    transition: color 150ms ease;
}

.char-count.optimal {
    color: #4ade80;
}

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

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

.input-hint {
    font-size: 13px;
    color: #6b7280;
}

.modal-hidden {
    display: none;
}

.optional-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.optional-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background-color: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 150ms ease, border-radius 150ms ease;
}

.optional-toggle:hover {
    background-color: #1a1a1a;
}

.optional-toggle[aria-expanded="true"] {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.optional-toggle-icon {
    font-size: 18px;
    color: #9ca3af;
    transition: transform 200ms ease;
}

.optional-toggle[aria-expanded="true"] .optional-toggle-icon {
    transform: rotate(45deg);
}

.optional-fields {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background-color: #141414;
    border: 1px solid #374151;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.optional-fields:not(.section-hidden) {
    display: flex;
}

.snippet-inputs {
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
    margin-top: 8px;
}

.snippet-inputs:not(.section-hidden) {
    display: flex;
}

.snippet-inputs-title {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 4px;
}

.faq-input-item,
.sitelink-input-item,
.breadcrumb-input-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}

.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-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.output-header h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #d1d5db;
}

.preview-toggle {
    display: flex;
    gap: 0;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.preview-toggle-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 150ms ease;
}

.preview-toggle-btn:hover {
    color: #d1d5db;
}

.preview-toggle-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.serp-preview-wrapper {
    background-color: #202124;
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
}

.serp-google-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #3c4043;
}

.serp-google-logo {
    font-size: 24px;
    font-weight: 700;
    color: #8ab4f8;
    flex-shrink: 0;
}

.serp-google-search-bar {
    flex: 1;
    background-color: #303134;
    border: 1px solid #5f6368;
    border-radius: 24px;
    padding: 8px 16px;
}

.serp-search-text {
    font-size: 14px;
    color: #e8eaed;
    font-family: Arial, sans-serif;
}

.serp-result {
    max-width: 652px;
    font-family: Arial, sans-serif;
}

.serp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #bdc1c6;
    margin-bottom: 4px;
    line-height: 1.3;
}

.serp-breadcrumb-favicon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #303134;
    flex-shrink: 0;
    overflow: hidden;
}

.serp-breadcrumb-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.serp-breadcrumb-domain {
    color: #dadce0;
    font-size: 14px;
}

.serp-breadcrumb-separator {
    color: #70757a;
    font-size: 12px;
}

.serp-breadcrumb-path {
    color: #bdc1c6;
    font-size: 14px;
}

.serp-title {
    color: #8ab4f8;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
    margin: 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 600px;
    cursor: pointer;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-description {
    color: #bdc1c6;
    font-size: 14px;
    line-height: 1.58;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.serp-date {
    color: #9aa0a6;
    font-size: 14px;
}

.serp-result.mobile {
    max-width: 360px;
    padding: 0;
}

.serp-result.mobile .serp-title {
    font-size: 18px;
    max-width: 320px;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.serp-result.mobile .serp-breadcrumb {
    font-size: 12px;
}

.serp-result.mobile .serp-breadcrumb-favicon {
    width: 16px;
    height: 16px;
}

.serp-result.mobile .serp-breadcrumb-domain {
    font-size: 12px;
}

.serp-result.mobile .serp-breadcrumb-separator {
    font-size: 10px;
}

.serp-result.mobile .serp-breadcrumb-path {
    font-size: 12px;
}

.serp-result.mobile .serp-description {
    font-size: 13px;
    max-width: 320px;
}

.serp-result.mobile .serp-date {
    font-size: 13px;
}

.serp-preview-wrapper.mobile {
    max-width: 400px;
}

.rich-snippet-area {
    margin-top: 0;
}

.rich-snippet-area:not(.section-hidden) {
    display: block;
    margin-top: 8px;
}

.rich-snippet-faq {
    border-top: 1px solid #3c4043;
    margin-top: 8px;
    padding-top: 8px;
}

.faq-item {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    color: #8ab4f8;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
}

.faq-question-chevron {
    color: #9aa0a6;
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 200ms ease;
}

.faq-item.expanded .faq-question-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    color: #bdc1c6;
    font-size: 14px;
    padding: 8px 0 0 0;
    display: none;
    font-family: Arial, sans-serif;
    line-height: 1.58;
}

.faq-item.expanded .faq-answer {
    display: block;
}

.rich-snippet-reviews {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.star-filled {
    color: #fbbc04;
}

.star-empty {
    color: #70757a;
}

.review-rating-value {
    color: #bdc1c6;
    margin-right: 2px;
}

.review-count {
    color: #bdc1c6;
}

.review-price {
    color: #bdc1c6;
    margin-left: 4px;
}

.rich-snippet-event {
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid #3c4043;
    font-family: Arial, sans-serif;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.event-date {
    color: #dadce0;
    font-size: 14px;
    font-weight: 600;
}

.event-venue {
    color: #bdc1c6;
    font-size: 14px;
}

.event-price {
    color: #bdc1c6;
    font-size: 14px;
}

.rich-snippet-sitelinks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #3c4043;
}

.sitelink-item {
    padding: 8px;
    border: 1px solid #3c4043;
    border-radius: 8px;
}

.sitelink-title {
    color: #8ab4f8;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.sitelink-title:hover {
    text-decoration: underline;
}

.sitelink-url {
    color: #bdc1c6;
    font-size: 12px;
    font-family: Arial, sans-serif;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rich-snippet-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #bdc1c6;
    font-family: Arial, sans-serif;
}

.breadcrumb-label {
    color: #dadce0;
}

.breadcrumb-chevron {
    color: #70757a;
    font-size: 12px;
}

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

.warnings-title {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.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: 14px;
    line-height: 1.5;
}

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

.warning-item.warning {
    background-color: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

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

.warning-item.success {
    background-color: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.warning-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.warning-item.info .warning-icon {
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.warning-item.warning .warning-icon {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.warning-item.error .warning-icon {
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.warning-item.success .warning-icon {
    background-color: rgba(74, 222, 128, 0.2);
    color: #86efac;
}

.warning-text {
    flex: 1;
}

.analysis-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-title {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.analysis-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a2a;
}

.analysis-row:last-child {
    border-bottom: none;
}

.analysis-label {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    width: 120px;
    flex-shrink: 0;
}

.analysis-value {
    font-size: 14px;
    color: #e5e7eb;
    flex: 1;
}

.analysis-status {
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: 12px;
}

.analysis-status.optimal {
    color: #4ade80;
}

.analysis-status.warning {
    color: #fbbf24;
}

.analysis-status.danger {
    color: #ef4444;
}

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

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

.comparison-section {
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

.comparison-section:not(.section-hidden) {
    display: flex;
}

.comparison-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.competitor-entry {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    margin-bottom: 12px;
}

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

.competitor-label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.competitor-remove {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color 150ms ease;
}

.competitor-remove:hover {
    color: #ef4444;
}

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

.bulk-section {
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #374151;
}

.bulk-section:not(.section-hidden) {
    display: flex;
}

.bulk-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #d1d5db;
}

.bulk-upload-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-upload-btn {
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.bulk-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.bulk-results-list::-webkit-scrollbar {
    width: 6px;
}

.bulk-results-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.bulk-results-list::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

.bulk-entry-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
}

.bulk-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bulk-entry-index {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.bulk-entry-flags {
    display: flex;
    gap: 6px;
}

.bulk-flag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

.bulk-flag.truncated {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.bulk-flag.ok {
    background-color: rgba(74, 222, 128, 0.15);
    color: #86efac;
}

.bulk-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

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

.error-message {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

.success-message {
    background-color: #064e3b;
    border: 1px solid #059669;
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 8px;
}

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

    .output-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .serp-preview-wrapper {
        padding: 16px;
    }

    .serp-result {
        max-width: 100%;
    }

    .serp-title {
        max-width: 100%;
    }

    .serp-description {
        max-width: 100%;
    }

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

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

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

        padding: 0 16px;
    }

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

    .analysis-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .analysis-label {
        width: 100%;
    }

    .analysis-status {
        margin-left: 0;
    }

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

    .rich-snippet-sitelinks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .serp-preview-wrapper {
        padding: 12px;
    }

    .serp-google-bar {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .warning-item {
        padding: 8px 10px;
        font-size: 13px;
    }

    .preview-toggle-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}