/* Humanizer Specific Styles */
:root {
    --bg-panel: rgba(12, 12, 12, 0.6);
    --border-highlight: rgba(196, 30, 30, 0.4);
}

.humanizer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
    height: 700px;
}

@media (max-width: 900px) {
    .humanizer-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.panel {
    background: var(--bg-panel);
    border: 1px solid var(--steel);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--steel);
    padding-bottom: 12px;
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0;
}

.step-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--steel);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
}

#robotic-text {
    height: 150px;
}

.style-samples-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-sample {
    height: 60px;
    font-size: 0.8rem;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.api-key-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--steel);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.primary-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.primary-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 30, 30, 0.3);
}

/* Output Panel */
.output-panel {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-dark);
}

.output-wrapper {
    flex-grow: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
}

.output-content {
    white-space: pre-wrap;
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-primary);
    min-height: 100%;
}

.output-content:focus {
    outline: none;
}

.placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--steel);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.stats-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--steel);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Loading Spinner */
#loading-indicator {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(196, 30, 30, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Header Override */
.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* GEO Section */
.geo-section {
    margin-top: 80px;
    border-top: 1px solid var(--steel);
    padding-top: 60px;
}

.geo-card {
    background: var(--bg-card);
    border: 1px solid var(--steel);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.geo-card h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    color: var(--accent-light);
}

/* Comparison Table */
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.comparison-table th {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.comparison-table th.highlight {
    color: var(--accent-light);
    border-bottom: 2px solid var(--accent);
    background: rgba(200, 30, 30, 0.05);
}

.comparison-table td.check {
    color: var(--green);
    font-weight: 600;
    background: rgba(34, 197, 94, 0.02);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Live Stats */
.live-stats {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Related Tools Links */
.related-tools {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.related-tools a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.related-tools a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}