/* ============================================
   DESTOLOLABS - JSON FORMATTER TOOL
   Professional & Clean Design System
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F7F6F3;
    color: #222222;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, .logo, .footer-brand .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===== HEADER ===== */
.header {
    background: #FFFFFF;
    border-bottom: 1px solid #E7E4DF;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: max(20px, 5%);
    padding-right: max(20px, 5%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: #071F32;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
}

.logo span {
    color: #D6B18A;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    color: #D6B18A;
}

.auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.btn-signin {
    background: transparent;
    border: 1px solid #071F32;
    color: #071F32;
}

.btn-signin:hover {
    background: #F7F6F3;
    border-color: #D6B18A;
    color: #041826;
}

.btn-signup {
    background: #071F32;
    color: white;
    border: none;
}

.btn-signup:hover {
    background: #041826;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(7, 31, 50, 0.12);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #071F32;
    padding: 8px;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px max(20px, 5%);
}

/* ===== 3-COLUMN LAYOUT ===== */
.layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 32px;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-card {
    background: #FFFFFF;
    border: 1px solid #E7E4DF;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.category-group {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 600;
    color: #071F32;
    cursor: pointer;
    font-size: 0.95rem;
}

.category-header i:first-child {
    margin-right: 10px;
    color: #D6B18A;
    width: 20px;
}

.chevron {
    transition: transform 0.3s ease;
    color: #A8A49C;
    font-size: 0.8rem;
}

.category-header.active .chevron {
    transform: rotate(180deg);
}

.category-content {
    display: none;
    padding-left: 30px;
}

.category-content.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #6A6A6A;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.category-content a i {
    width: 20px;
    font-size: 0.85rem;
}

.category-content a:hover,
.category-content a.active {
    color: #D6B18A;
}

.info-box {
    text-align: center;
    padding: 20px;
    background: #F7F6F3;
    border-radius: 16px;
}

.info-box i {
    font-size: 2rem;
    color: #D6B18A;
    margin-bottom: 12px;
    display: block;
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #071F32;
}

.info-box p {
    font-size: 0.75rem;
    color: #6A6A6A;
}

/* ===== TOOL AREA ===== */
.tool-card {
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #E7E4DF;
    overflow: hidden;
}

.tool-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #E7E4DF;
}

.tool-badge {
    display: inline-block;
    background: #F7F6F3;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #D6B18A;
    margin-bottom: 16px;
}

.tool-badge i {
    margin-right: 6px;
}

.tool-header h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 12px;
    color: #071F32;
}

.tool-description {
    color: #6A6A6A;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== INPUT CARD ===== */
.input-card {
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #071F32;
}

.form-group label i {
    color: #D6B18A;
    margin-right: 8px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.editor-header label {
    margin-bottom: 0;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.editor-action-btn {
    background: transparent;
    border: 1px solid #E7E4DF;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #6A6A6A;
}

.editor-action-btn:hover {
    border-color: #D6B18A;
    color: #D6B18A;
}

.json-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #E7E4DF;
    border-radius: 14px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    resize: vertical;
    transition: all 0.2s;
    background: #F7F6F3;
    min-height: 200px;
    line-height: 1.6;
}

.json-textarea:focus {
    outline: none;
    border-color: #D6B18A;
    box-shadow: 0 0 0 3px rgba(214, 177, 138, 0.1);
    background: white;
}

.editor-status {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    font-size: 0.7rem;
    color: #6A6A6A;
}

.editor-status span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Collapse Sections */
.collapse-section {
    margin-top: 20px;
    border: 1px solid #E7E4DF;
    border-radius: 16px;
    overflow: hidden;
}

.collapse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #F7F6F3;
    cursor: pointer;
    font-weight: 600;
    color: #071F32;
    transition: background 0.2s;
}

.collapse-header:hover {
    background: #EFEDE8;
}

.collapse-chevron {
    transition: transform 0.3s ease;
    color: #A8A49C;
}

.collapse-header.active .collapse-chevron {
    transform: rotate(180deg);
}

.collapse-content {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #E7E4DF;
}

.collapse-content.open {
    display: block;
    animation: slideDown 0.3s ease;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: #6A6A6A;
}

.option-group label i {
    color: #D6B18A;
    margin-right: 6px;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E7E4DF;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn-primary {
    padding: 12px 28px;
    background: #071F32;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.action-btn-primary:hover {
    background: #041826;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 31, 50, 0.15);
}

.action-btn-secondary {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #E7E4DF;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6A6A6A;
    font-family: 'Inter', sans-serif;
}

.action-btn-secondary:hover {
    border-color: #D6B18A;
    color: #D6B18A;
}

/* JSON Output */
.json-output {
    margin-top: 24px;
    padding: 24px;
    background: #F7F6F3;
    border-radius: 20px;
    border: 1px solid #E7E4DF;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E7E4DF;
}

.output-header span {
    font-weight: 600;
    color: #071F32;
}

.output-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: 1px solid #071F32;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: #071F32;
}

.action-btn:hover {
    background: #071F32;
    color: white;
}

.json-display {
    background: #1A1A2E;
    border-radius: 14px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.json-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.75rem;
    padding: 20px;
    margin: 0;
    color: #A8D8EA;
    white-space: pre-wrap;
    word-break: break-all;
    background: #1A1A2E;
    line-height: 1.6;
}

.json-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #E7E4DF;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6A6A6A;
}

.stat-item i {
    color: #D6B18A;
    width: 16px;
}

.stat-item span {
    font-weight: 600;
    color: #071F32;
}

/* Error Area */
.error-area {
    margin-top: 20px;
    padding: 16px 20px;
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: 14px;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #C62828;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-content {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.8rem;
    color: #C62828;
    white-space: pre-wrap;
}

/* Generate Button */
.btn-generate {
    width: 100%;
    margin-top: 32px;
    padding: 14px;
    background: #071F32;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-family: 'Inter', sans-serif;
}

.btn-generate:hover {
    background: #041826;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(7, 31, 50, 0.15);
}

/* ===== RIGHT SIDEBAR ===== */
.sidebar-right h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: #071F32;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #F7F6F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #D6B18A;
}

.step-text {
    font-size: 0.8rem;
    color: #6A6A6A;
}

.related-list,
.tips-list {
    list-style: none;
}

.related-list li,
.tips-list li {
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.related-list a {
    text-decoration: none;
    color: #6A6A6A;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.related-list a i {
    color: #D6B18A;
    font-size: 0.7rem;
}

.related-list a:hover {
    color: #D6B18A;
}

.tips-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6A6A6A;
}

.tips-list li i {
    color: #D6B18A;
    width: 20px;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
    padding: 60px 0;
    background: #FFFFFF;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    width: 100%;
}

.carousel-prev,
.carousel-next {
    background: white;
    border: 1px solid #E7E4DF;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev:hover,
.carousel-next:hover {
    border-color: #071F32;
    background: #F7F6F3;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 12px 4px 28px;
    scrollbar-width: thin;
    scrollbar-color: #D6B18A #E7E4DF;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
    height: 6px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #E7E4DF;
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #D6B18A;
    border-radius: 10px;
}

.carousel-card {
    min-width: 280px;
    flex-shrink: 0;
    background: #F7F6F3;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #E7E4DF;
    transition: all 0.2s;
}

.carousel-card:hover {
    border-color: #D6B18A;
    transform: translateY(-2px);
}

.carousel-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #D6B18A;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-card h4 {
    font-family: 'Playfair Display', serif;
    margin: 12px 0 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #071F32;
}

.carousel-card p {
    font-size: 0.8rem;
    color: #6A6A6A;
    margin-bottom: 16px;
    line-height: 1.5;
}

.carousel-link {
    text-decoration: none;
    font-weight: 500;
    color: #071F32;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.carousel-link:hover {
    color: #D6B18A;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-top: 64px;
}

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 12px;
    color: #071F32;
}

.faq-header p {
    color: #6A6A6A;
    font-size: 0.9rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-card {
    background: white;
    border: 1px solid #E7E4DF;
    border-radius: 20px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
    color: #071F32;
}

.faq-question:hover {
    background: #F7F6F3;
}

.faq-question span i {
    color: #D6B18A;
    margin-right: 12px;
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: #D6B18A;
}

.faq-card.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    color: #6A6A6A;
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.faq-card.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1A1A1A;
    color: #A8A49C;
    padding: 48px 32px 32px;
    margin-top: 64px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand .logo {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand .logo span {
    color: #C7A85B;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-links a {
    color: #A8A49C;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #C7A85B;
}

.footer-copyright {
    font-size: 0.75rem;
}

/* ===== MOBILE PRO TIPS ===== */
.mobile-pro-tips {
    display: none;
    margin-top: 32px;
    padding: 20px;
    background: #F7F6F3;
    border-radius: 20px;
}

.mobile-pro-tips h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #071F32;
}

.tips-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tip-item-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #6A6A6A;
    padding: 8px 12px;
    background: white;
    border-radius: 12px;
}

.tip-item-mobile i {
    color: #D6B18A;
    width: 20px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #FFFFFF;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.mobile-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #071F32;
}

.mobile-logo span {
    color: #D6B18A;
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6A6A6A;
    padding: 8px;
}

.mobile-menu-divider {
    height: 1px;
    background: #E7E4DF;
    margin: 0 24px;
}

.mobile-nav-list {
    list-style: none;
    padding: 20px 24px;
    margin: 0;
    flex: 1;
}

.mobile-nav-list > li > a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #222222;
    display: block;
    padding: 12px 0;
}

.mobile-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-weight: 600;
    color: #071F32;
    cursor: pointer;
}

.mobile-category-header i:first-child {
    margin-right: 12px;
    color: #D6B18A;
    width: 24px;
}

.mobile-chevron {
    transition: transform 0.3s ease;
    color: #A8A49C;
}

.mobile-category-header.active .mobile-chevron {
    transform: rotate(180deg);
}

.mobile-category-content {
    display: none;
    padding-left: 36px;
    margin-bottom: 8px;
}

.mobile-category-content.open {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-category-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #6A6A6A;
    font-size: 0.85rem;
}

.mobile-category-content a i {
    width: 20px;
}

.mobile-category-content a:hover {
    color: #D6B18A;
}

.mobile-menu-actions {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-signin,
.mobile-getstarted {
    display: block;
    text-align: center;
    padding: 12px 20px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.mobile-signin {
    color: #071F32;
    border: 1px solid #071F32;
}

.mobile-getstarted {
    background: #071F32;
    color: white;
}

.mobile-menu-footer {
    padding: 20px 24px;
    text-align: center;
}

.mobile-menu-footer p {
    font-size: 0.75rem;
    color: #6A6A6A;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 1500;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1A1A1A;
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #2E7D32;
    border-left: 4px solid #81C784;
}

.toast-warning {
    background: #E65100;
    border-left: 4px solid #FFB74D;
}

.toast-info {
    background: #071F32;
    border-left: 4px solid #D6B18A;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .auth {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-pro-tips {
        display: block;
    }
}

@media (max-width: 768px) {
    .tool-header {
        padding: 24px 20px;
    }
    
    .input-card {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn-primary,
    .action-btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .output-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        text-align: center;
    }
    
    .output-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .json-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .editor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .editor-actions {
        width: 100%;
    }
    
    .editor-action-btn {
        flex: 1;
        text-align: center;
    }
    
    .tips-grid-mobile {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .carousel-prev,
    .carousel-next {
        display: none;
    }
    
    .carousel-card {
        min-width: 260px;
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 24px 16px;
    }
    
    .tool-header h1 {
        font-size: 1.4rem;
    }
    
    .faq-question {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .editor-status {
        flex-direction: column;
        gap: 4px;
    }
}