/* Word Combiner Tool Styles */

/* Input Mode Tab Styles */
.input-mode-tab {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.input-mode-tab:hover {
    background: #e5e7eb;
    color: #4b5563;
    border-color: #d1d5db;
}

.input-mode-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, 0.3);
}

/* Form Elements */
.word-combiner-input {
    transition: all 0.2s ease;
    font-family: "Inter", sans-serif;
}

.word-combiner-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Word Input Textarea */
#wordInput {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
}

#wordInput:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pattern Input */
#pattern {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    font-size: 14px;
}

/* Status Bar Variants */
.status-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
    color: #15803d;
}

.status-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
    color: #dc2626;
}

.status-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #2563eb;
}

/* Results Output */
#resultsOutput {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    border-radius: 8px;
    padding: 12px;
}

#resultsOutput::-webkit-scrollbar {
    width: 8px;
}

#resultsOutput::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

#resultsOutput::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

#resultsOutput::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Button Hover Effects */
.word-combiner-btn {
    transition: all 0.2s ease;
}

.word-combiner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.1);
}

.word-combiner-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Copy Notification */
#copyNotification {
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

/* Radio Button Styling */
input[type="radio"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Checkbox Styling */
input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Custom Select Styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Results Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Input Instructions */
.input-instruction {
    transition: all 0.2s ease;
}

.input-instruction.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.input-instruction.active {
    opacity: 1;
    height: auto;
}

/* Number Input Styling */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 640px) {
    .input-mode-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    #wordInput {
        min-height: 150px;
        font-size: 13px;
    }

    .word-combiner-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    #resultsOutput {
        font-size: 12px;
        max-height: 250px;
    }
}

/* Dark mode preparation (if needed later) */
@media (prefers-color-scheme: dark) {
    /* Currently disabled as per requirements, but structure is ready */
}

/* Animation for result updates */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#resultsSection {
    animation: fadeInUp 0.3s ease-out;
}

/* Loading state (if needed) */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Focus improvements for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Text selection styling */
::selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

::-moz-selection {
    background-color: rgba(59, 130, 246, 0.2);
    color: #1f2937;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Marketing Presets Styles */
.marketing-preset {
    transition: all 0.3s ease;
    cursor: pointer;
}

.marketing-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.marketing-preset:hover .preset-icon {
    transform: scale(1.1);
}

.preset-icon {
    transition: transform 0.2s ease;
}

/* Marketing Options Animation */
#marketingOptions {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

#marketingOptions.show {
    opacity: 1;
    max-height: 600px;
}

/* Marketing Option Panels */
.marketing-option-panel {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.marketing-option-panel.show {
    opacity: 1;
    max-height: 400px;
}

/* Domain Extension Checkboxes */
.domain-extension {
    transition: all 0.2s ease;
}

.domain-extension:checked + span {
    color: #3b82f6;
    font-weight: 600;
}

/* Status Message Enhancements */
.status-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #10b981;
}

.status-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #3b82f6;
}

.status-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.status-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
}

/* Marketing Presets Styles */
.marketing-preset-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.marketing-preset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.marketing-preset-card:active {
    transform: translateY(0);
}

.marketing-preset-icon {
    transition: all 0.2s ease;
}

.marketing-preset-card:hover .marketing-preset-icon {
    transform: scale(1.1);
}

/* Marketing Options Animations */
#marketingOptions {
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

#marketingOptions.show {
    animation-name: slideDown;
}

#marketingOptions.hide {
    animation-name: slideUp;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Domain Extension Checkboxes */
.domain-extension {
    margin-right: 4px;
}

/* Specialized Result Highlighting */
.result-line.keyword-exact::before {
    content: "📍";
    margin-right: 8px;
}

.result-line.keyword-phrase::before {
    content: "💬";
    margin-right: 8px;
}

.result-line.keyword-broad::before {
    content: "🎯";
    margin-right: 8px;
}

.result-line.keyword-negative::before {
    content: "⛔";
    margin-right: 8px;
    color: #ef4444;
}

.result-line.anchor-branded {
    color: #7c3aed;
    font-weight: 500;
}

.result-line.anchor-exact {
    color: #059669;
    font-weight: 500;
}

.result-line.anchor-generic {
    color: #6b7280;
    font-style: italic;
}

.result-line.domain-short {
    color: #0891b2;
    font-weight: 500;
}

.result-line.domain-brandable {
    color: #c2410c;
    font-weight: 500;
}

/* Input Instructions */
.input-instruction {
    transition: opacity 0.3s ease, max-height 0.3s ease;
    opacity: 1;
    max-height: 200px;
    overflow: hidden;
}

.input-instruction.hidden {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

.input-instruction.active {
    opacity: 1;
    max-height: 200px;
}

/* Input Instructions Container */
#inputInstructions {
    min-height: 120px;
    transition: all 0.3s ease;
}
