/* Tool Hero Section */
.tool-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 260px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Converter Wrapper */
.converter-wrapper {
    margin-bottom: 2rem;
}

.converter-card {
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.converter-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card Sections */
.card-section {
    display: flex;
    flex-direction: column;
}

.card-input {
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.card-output {
    /* Output section styles */
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg-header, #f8f9fa);
    border-bottom: 1px solid var(--border-color, #e9ecef);
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #212529);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    background: var(--bg-badge, #e9ecef);
    color: var(--text-muted, #6c757d);
}

.section-badge-success {
    background: #d1f2eb;
    color: #0d9488;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary, #495057);
    background: transparent;
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--bg-hover, #f8f9fa);
    border-color: var(--border-hover, #adb5bd);
    color: var(--text-primary, #212529);
}

.btn-action:active {
    transform: scale(0.98);
}

.btn-action svg {
    flex-shrink: 0;
}

.btn-copy {
    background: #0d9488;
    color: #ffffff;
    border-color: #0d9488;
}

.btn-copy:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.btn-copy.copied {
    background: #10b981;
    border-color: #10b981;
}

.btn-text {
    display: inline-block;
}

/* Section Body */
.section-body {
    flex: 1;
    position: relative;
    min-height: 300px;
}

.code-editor {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* Section Footer */
.section-footer {
    padding: 0.75rem 1.25rem;
    background: var(--bg-header, #f8f9fa);
    border-top: 1px solid var(--border-color, #e9ecef);
}

/* Status Indicator */
.converter-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #6c757d;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.status-success {
    background: #10b981;
}

.status-indicator.status-error {
    background: #ef4444;
    animation: none;
}

.status-indicator.status-processing {
    background: #3b82f6;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 0.875rem;
    color: var(--text-secondary, #6c757d);
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hero-text h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }

    .section-header {
        padding: 0.875rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .section-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-action {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }

    .btn-text {
        display: none;
    }

    .section-body {
        min-height: 250px;
    }

    .code-editor {
        min-height: 250px;
    }

    .section-footer {
        padding: 0.625rem 1rem;
    }

    .status-text {
        font-size: 0.8125rem;
    }
}

/* Tablet Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-body {
        min-height: 280px;
    }

    .code-editor {
        min-height: 280px;
    }
}

/* Desktop - Larger editor heights */
@media (min-width: 1024px) {
    .section-body {
        min-height: 350px;
    }

    .code-editor {
        min-height: 350px;
    }
}

/* Dark Mode Support (if applicable) */
@media (prefers-color-scheme: dark) {
    .converter-card {
        background: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .section-header {
        background: #252525;
        border-bottom-color: #333;
    }

    .section-title {
        color: #e0e0e0;
    }

    .section-badge {
        background: #333;
        color: #b0b0b0;
    }

    .btn-action {
        color: #b0b0b0;
        border-color: #444;
    }

    .btn-action:hover {
        background: #2a2a2a;
        border-color: #555;
        color: #e0e0e0;
    }

    .section-footer {
        background: #252525;
        border-top-color: #333;
    }

    .status-text {
        color: #b0b0b0;
    }
}
