/* Main Container Styles */
.json-yaml-converter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section */
.json-yaml-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 13, 255, 0.2);
}

.json-yaml-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.json-yaml-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.json-yaml-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.json-yaml-feature-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Main Converter Container */
.json-yaml-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.json-yaml-input-section,
.json-yaml-output-section {
    flex: 1;
}

.json-yaml-input-header,
.json-yaml-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.json-yaml-input-header h2,
.json-yaml-output-header h2 {
    font-size: 1.5rem;
    color: #444;
    margin: 0;
}

.json-yaml-actions {
    display: flex;
    gap: 10px;
}

.json-yaml-action-btn {
    padding: 8px 15px;
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.json-yaml-action-btn:hover {
    background: #e0e0e0;
}

.json-yaml-action-btn svg {
    width: 16px;
    height: 16px;
}

.json-yaml-textarea,
.json-yaml-output {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.json-yaml-textarea:focus,
.json-yaml-output:focus {
    outline: none;
    border-color: #6B73FF;
    box-shadow: 0 0 0 2px rgba(107, 115, 255, 0.2);
}

.json-yaml-output {
    white-space: pre-wrap;
    overflow-y: auto;
    background-color: #f5f5f5;
}

.json-yaml-convert-btn-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.json-yaml-convert-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 13, 255, 0.3);
}

.json-yaml-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 13, 255, 0.4);
}

.json-yaml-convert-btn:active {
    transform: translateY(0);
}

.json-yaml-error-message {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #fde8e8;
    border-radius: 5px;
    display: none;
}

.json-yaml-success-message {
    color: #27ae60;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #e8f8f0;
    border-radius: 5px;
    display: none;
}

/* Info Boxes Section */
.json-yaml-info-section {
    margin: 60px 0;
}

.json-yaml-info-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.json-yaml-info-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.json-yaml-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.json-yaml-info-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.json-yaml-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.json-yaml-info-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(107, 115, 255, 0.1);
    border-radius: 50%;
}

.json-yaml-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #444;
}

.json-yaml-info-box p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Content Section */
.json-yaml-content-section {
    margin: 60px 0;
}

.json-yaml-content-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.json-yaml-content-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.json-yaml-content-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.json-yaml-content-card h3 {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.json-yaml-content-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    border-radius: 3px;
}

.json-yaml-content-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.json-yaml-code-example {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 20px;
}

.json-yaml-code-example pre {
    margin: 0;
}

/* FAQ Section */
.json-yaml-faq-section {
    margin: 60px 0;
}

.json-yaml-faq-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.json-yaml-faq-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

.json-yaml-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.json-yaml-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    background: white;
}

.json-yaml-faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.json-yaml-faq-question:hover {
    background-color: #f9f9f9;
}

.json-yaml-faq-question svg {
    transition: transform 0.3s ease;
}

.json-yaml-faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.json-yaml-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.json-yaml-faq-answer p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.json-yaml-faq-item.active .json-yaml-faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.json-yaml-internal-link {
    color: #6B73FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.json-yaml-internal-link:hover {
    color: #000DFF;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .json-yaml-hero h1 {
        font-size: 2rem;
    }
    
    .json-yaml-subtitle {
        font-size: 1rem;
    }
    
    .json-yaml-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .json-yaml-input-header,
    .json-yaml-output-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .json-yaml-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .json-yaml-action-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .json-yaml-hero {
        padding: 20px 15px;
    }
    
    .json-yaml-hero h1 {
        font-size: 1.8rem;
    }
    
    .json-yaml-convert-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .json-yaml-content-card,
    .json-yaml-info-box {
        padding: 20px;
    }
}