/* Main Container Styles */
.json-stringify-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section Styles */
.json-stringify-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.json-stringify-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.json-stringify-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Tool Section Styles */
.json-stringify-tool {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .json-stringify-tool {
        grid-template-columns: 1fr 1fr;
    }
}

.json-stringify-input-section,
.json-stringify-output-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.json-stringify-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #444;
    font-size: 1.1rem;
}

.json-stringify-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 15px;
    transition: border 0.3s;
}

.json-stringify-textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.json-stringify-buttons {
    display: flex;
    gap: 10px;
}

.json-stringify-button {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background-color: #6e8efb;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.json-stringify-button:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
}

.json-clear-button {
    background-color: #f44336;
}

.json-clear-button:hover {
    background-color: #e53935;
}

.json-stringify-output-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.json-copy-button {
    background-color: #4caf50;
}

.json-copy-button:hover {
    background-color: #43a047;
}

.json-download-button {
    background-color: #ff9800;
}

.json-download-button:hover {
    background-color: #fb8c00;
}

/* Info Boxes Styles */
.json-stringify-info-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .json-stringify-info-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.json-stringify-info-box {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.json-stringify-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.json-stringify-info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.json-stringify-info-box h3 {
    margin-bottom: 15px;
    color: #444;
}

.json-stringify-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section Styles */
.json-stringify-content {
    margin-bottom: 50px;
}

.json-stringify-content-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #444;
    position: relative;
    display: inline-block;
}

.json-stringify-content-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 2px;
}

.json-stringify-content-shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #6e8efb, #a777e3);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    z-index: -1;
}

.json-stringify-content-shape-right {
    right: 0;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
}

.json-stringify-content-text {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.json-stringify-content-subtitle {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #444;
}

/* FAQ Section Styles */
.json-stringify-faq {
    margin-bottom: 50px;
}

.json-stringify-faq-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #444;
    position: relative;
}

.json-stringify-faq-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 2px;
}

.json-stringify-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.json-stringify-faq-question {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: white;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.json-stringify-faq-question:hover {
    background: #f9f9f9;
}

.json-stringify-faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.json-stringify-faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.json-stringify-faq-answer p {
    padding: 20px;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.json-stringify-faq-item.active .json-stringify-faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.json-stringify-faq-item.active .json-stringify-faq-icon {
    transform: rotate(45deg);
}

.json-stringify-related-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.json-stringify-related-link:hover {
    text-decoration: underline;
}