/* JSON Formatter Tool Styles - Orange Theme */
/* Based on Word Counter structure with orange color scheme */

/* Reset for our tool only */
.json-formatter-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Tool Description Section - Header Only */
.tool-description-section {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    padding: 40px 0 20px;
    margin-bottom: 0;
    text-align: center;
}

.tool-description-section .json-formatter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.tool-main-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tool-subtitle {
    font-size: 1.3rem;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA with Icon */
.start-formatting-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-icon {
    font-size: 2rem;
    color: #fff;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

.cta-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Container */
.json-formatter-container {
    background-color: #f9fafb;
    padding: 20px 0 40px;
    width: 100%;
    min-height: calc(100vh - 200px);
}

.json-formatter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout - Tool and Sidebar */
.tool-layout {
    display: flex;
    gap: 30px;
    position: relative;
    margin-top: 20px;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-area {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Input Section */
.input-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.input-section h2 {
    color: #e67e22;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #fde3c8;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.section-icon {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 10px;
}

/* Textarea */
#jsonInput {
    width: 100%;
    min-height: 280px;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s;
    line-height: 1.7;
    font-family: 'Courier New', monospace;
    background: #fafafa;
    color: #333;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

#jsonInput:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15), inset 0 2px 5px rgba(0,0,0,0.05);
    background: #fff;
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0 25px 0;
    padding: 15px 20px;
    background-color: #fef6e9;
    border: 1px solid #ffddb3;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #e67e22;
    animation: slideIn 0.5s ease;
}

.privacy-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.privacy-text {
    line-height: 1.5;
    font-weight: 500;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Controls */
.text-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.file-info {
    font-size: 0.9rem;
    color: #666;
    padding: 5px 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #eee;
}

/* Buttons */
.json-formatter-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.json-formatter-buttons .btn {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    text-align: center;
    height: 50px;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background-color: #f0f2f5;
    color: #2c3e50;
    border: 2px solid #e1e8ed;
}

.btn-secondary:hover {
    background-color: #e4e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d9e0;
}

.btn-clear {
    background-color: #e74c3c;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-clear:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Loading Spinner */
.json-formatter-loading {
    display: none;
    text-align: center;
    padding: 30px;
    margin-top: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e67e22;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.json-formatter-loading p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Results Section */
.results-section {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: 100%;
    border: 1px solid #eee;
}

.results-section h2 {
    color: #e67e22;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #fde3c8;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    border-left: 6px solid #e67e22;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
}

.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.stat-label {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border-left: 6px solid #2ecc71;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e8f5e9;
}

.highlight-title {
    color: #27ae60;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', monospace;
}

/* Output Section */
.output-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.section-subtitle {
    color: #34495e;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.output-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.control-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.control-select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.output-container {
    background: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1e1e1e;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.output-size {
    background: #e67e22;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

#jsonOutput {
    margin: 0;
    padding: 25px;
    background: #2d2d2d;
    color: #f8f8f2;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    tab-size: 4;
}

/* JSON Syntax Highlighting */
#jsonOutput .json-string { color: #f1fa8c; }
#jsonOutput .json-number { color: #bd93f9; }
#jsonOutput .json-boolean { color: #ff79c6; }
#jsonOutput .json-null { color: #ff79c6; }
#jsonOutput .json-key { color: #8be9fd; }
#jsonOutput .json-bracket { color: #ffb86c; }

.output-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Ad Container Styles */
.ad-container {
    margin: 30px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ad-label {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.ad-unit {
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    padding: 10px;
    border: 1px solid #eee;
}

.ad-top-sidebar {
    margin-top: 0;
}

/* Hide mobile ads on desktop */
@media (min-width: 769px) {
    .ad-mobile {
        display: none !important;
    }
}

/* Show mobile ads on mobile */
@media (max-width: 768px) {
    .ad-desktop {
        display: none !important;
    }
    .ad-container {
        margin: 20px 0;
        padding: 15px;
    }
}

/* Sidebar Styles */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sticky-ad {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sidebar-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.widget-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 8px;
    color: #e67e22;
}

.tips-list, .tools-list, .standards-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list li:before {
    content: "✓";
    color: #e67e22;
    font-weight: bold;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tools-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.tools-list li:hover {
    padding-left: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.tools-list li:last-child {
    border-bottom: none;
}

.tools-list a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tools-list a:before {
    content: "→";
    color: #e67e22;
    font-weight: bold;
}

.tools-list a:hover {
    color: #e67e22;
    text-decoration: none;
}

.standards-list li {
    padding: 10px 0;
    color: #666;
    font-size: 0.9rem;
    border-bottom: 1px dashed #eee;
}

.standards-list li strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Related Tools Section */
.related-tools-section {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.related-tools-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #e67e22;
    background: white;
}

.tool-card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffe8cc 0%, #ffd8a8 100%);
    border-radius: 20px;
    margin-left: auto;
    margin-right: auto;
    color: #e67e22;
}

.tool-card-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.tool-card-desc {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.tool-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-tag {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.tool-card-link {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-card-link:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    color: white;
    text-decoration: none;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    margin-top: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-question {
    width: 100%;
    padding: 22px 30px;
    text-align: left;
    background: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: all 0.3s;
    position: relative;
}

.faq-question:hover {
    background: #f8f9fa;
    color: #e67e22;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: #e67e22;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.faq-question.active {
    background: #fff8f0;
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
}

.faq-question.active::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
    visibility: hidden;
    background: white;
}

.faq-question.active + .faq-answer {
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.8s ease-in-out, opacity 0.4s ease 0.2s, visibility 0.4s ease 0.2s;
}

.faq-answer-content {
    padding: 30px;
    margin: 0;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
    border-top: 1px solid #f0f0f0;
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    font-size: 0.95rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e67e22;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    background-color: rgba(230, 126, 34, 0.1);
    color: #d35400;
    text-decoration: none;
}

.breadcrumb-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #7f8c8d;
    font-weight: 600;
}

.breadcrumb-separator {
    color: #bdc3c7;
    font-size: 0.9rem;
    padding: 0 5px;
}

.breadcrumb-icon {
    font-size: 1rem;
}

/* Tool Description Content */
.tool-description-content {
    background: white;
    border-radius: 16px;
    padding: 40px 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    border: 1px solid #eee;
}

.tool-description-content .tool-description {
    margin-bottom: 50px;
}

.tool-description-content .tool-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
}

.tool-description-content .tool-features {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.tool-description-content .tool-features h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 12px;
    color: #e67e22;
}

.tool-description-content .tool-features ul {
    list-style-type: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.tool-description-content .tool-features li {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #e67e22;
    font-size: 1rem;
    line-height: 1.6;
    transition: transform 0.3s;
}

.tool-description-content .tool-features li:hover {
    transform: translateX(5px);
    background: #fff8f0;
}

.tool-description-content .tool-features li strong {
    color: #e67e22;
    font-weight: 700;
}

/* How to Use Section */
.how-to-use-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 3px solid #f0f0f0;
}

.how-to-use-section h2 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
    justify-content: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.step-content h3 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .tool-layout {
        flex-direction: column;
    }
    
    .sidebar-area {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        order: 2;
    }
    
    .sticky-ad {
        position: static;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .tool-main-title {
        font-size: 2.2rem;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-description-content .tool-features ul {
        grid-template-columns: 1fr;
    }
    
    .json-formatter-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (max 767px) */
@media (max-width: 767px) {
    .tool-description-section {
        padding: 30px 0 15px;
    }
    
    .tool-main-title {
        font-size: 2rem;
    }
    
    .tool-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-text {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    .input-section,
    .results-section,
    .tool-description-content,
    .related-tools-section,
    .faq-section,
    .output-section {
        padding: 20px;
    }
    
    .input-section h2,
    .results-section h2,
    .tool-description-content h2,
    .related-tools-section h2,
    .faq-section h2,
    .how-to-use-section h2 {
        font-size: 1.4rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .json-formatter-buttons {
        grid-template-columns: 1fr;
    }
    
    .export-buttons,
    .output-actions {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-area {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    
    .faq-answer-content {
        padding: 20px;
        font-size: 1rem;
    }
    
    .control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .output-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .file-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    #jsonInput {
        min-height: 200px;
        padding: 15px;
        font-size: 14px;
    }
    
    .tool-description-content .tool-features ul {
        grid-template-columns: 1fr;
    }
    
    .tool-description-content .tool-description p {
        font-size: 1.1rem;
    }
    
    .tool-card {
        padding: 25px 20px;
    }
    
    .tool-card-title {
        font-size: 1.3rem;
    }
    
    .related-tools-section h2,
    .faq-section h2 {
        font-size: 1.6rem;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .tool-card {
        padding: 20px 15px;
    }
    
    .tool-card-title {
        font-size: 1.2rem;
    }
    
    .ad-container {
        padding: 15px 10px;
    }
    
    .tool-main-title {
        font-size: 1.8rem;
    }
    
    .section-icon {
        font-size: 1.4rem;
        width: 35px;
        height: 35px;
    }
    
    .tool-subtitle {
        font-size: 1rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
        padding: 8px 16px;
    }
    
    .breadcrumb-container {
        padding: 12px 0;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 4px 8px;
    }
}

/* Large Desktop (min 1200px) */
@media (min-width: 1200px) {
    .json-formatter-wrapper {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    .ad-container,
    .sidebar-area,
    .json-formatter-buttons .btn,
    .export-options,
    .related-tools-section,
    .faq-section,
    .output-actions,
    .breadcrumb-container,
    .start-formatting-cta {
        display: none !important;
    }
    
    .json-formatter-container {
        background: white;
        padding: 0;
    }
    
    .tool-description-section {
        background: white !important;
        color: black !important;
        padding: 20px 0 !important;
        border-bottom: 2px solid #000;
    }
    
    .tool-main-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    .input-section,
    .results-section,
    .output-container {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    #jsonOutput {
        background: white !important;
        color: black !important;
        border: 1px solid #000 !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .json-formatter-container,
    .input-section,
    .results-section,
    .tool-description-content,
    .sidebar-widget,
    .related-tools-section,
    .faq-section {
        background-color: #1a1a1a;
        color: #e0e0e0;
        border-color: #333;
    }
    
    #jsonInput,
    .output-container {
        background-color: #2d2d2d;
        color: #f8f8f2;
        border-color: #444;
    }
    
    .stat-card,
    .highlight-box,
    .tool-card {
        background-color: #2d2d2d;
        color: #e0e0e0;
    }
    
    .privacy-notice {
        background-color: rgba(230, 126, 34, 0.1);
        border-color: rgba(230, 126, 34, 0.3);
        color: #ffa94d;
    }
}