/* Main Container Styles */
.utf8-decoder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section Styles */
.utf8-decoder-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 40px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.utf8-decoder-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.utf8-decoder-hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.utf8-decoder-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.utf8-decoder-shape-1, 
.utf8-decoder-shape-2, 
.utf8-decoder-shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.utf8-decoder-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.utf8-decoder-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.utf8-decoder-shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 30%;
}

/* Tool Section Styles */
.utf8-decoder-tool {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .utf8-decoder-tool {
        grid-template-columns: 1fr 1fr;
    }
}

.utf8-decoder-input-section,
.utf8-decoder-output-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e1e1;
}

.utf8-decoder-input-section label,
.utf8-decoder-output-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
}

.utf8-decoder-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
    transition: border 0.3s;
}

.utf8-decoder-textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.utf8-decoder-btn {
    background-color: #6e8efb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.utf8-decoder-btn:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.utf8-decoder-btn-secondary {
    background-color: #f1f1f1;
    color: #555;
}

.utf8-decoder-btn-secondary:hover {
    background-color: #e1e1e1;
}

.utf8-decoder-btn-copy {
    background-color: #4CAF50;
}

.utf8-decoder-btn-copy:hover {
    background-color: #3e8e41;
}

/* Info Boxes Styles */
.utf8-decoder-info-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .utf8-decoder-info-boxes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.utf8-decoder-info-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e1e1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.utf8-decoder-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.utf8-decoder-info-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.utf8-decoder-info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #444;
}

.utf8-decoder-info-box p {
    color: #666;
    line-height: 1.6;
}

/* Content Section Styles */
.utf8-decoder-content {
    margin-bottom: 50px;
}

.utf8-decoder-content-title {
    font-size: 2rem;
    color: #444;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.utf8-decoder-content-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 2px;
}

.utf8-decoder-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.utf8-decoder-example {
    background: #f9f9f9;
    border-left: 4px solid #6e8efb;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 0 4px 4px 0;
}

.utf8-decoder-example h3 {
    margin-top: 0;
    color: #444;
}

.utf8-decoder-example code {
    background: #e1e1e1;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.utf8-decoder-subtitle {
    font-size: 1.5rem;
    color: #444;
    margin: 30px 0 15px;
}

.utf8-decoder-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.utf8-decoder-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.utf8-decoder-internal-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.utf8-decoder-internal-link:hover {
    text-decoration: underline;
}

/* FAQ Section Styles */
.utf8-decoder-faq {
    margin-bottom: 50px;
}

.utf8-decoder-faq-title {
    font-size: 2rem;
    color: #444;
    margin-bottom: 30px;
    text-align: center;
}

.utf8-decoder-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.utf8-decoder-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.utf8-decoder-faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.utf8-decoder-faq-question:hover {
    background: #f9f9f9;
}

.utf8-decoder-faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.utf8-decoder-faq-answer {
    padding: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.utf8-decoder-faq-answer p {
    padding: 20px;
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.utf8-decoder-faq-item.active .utf8-decoder-faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.utf8-decoder-faq-item.active .utf8-decoder-faq-icon {
    transform: rotate(45deg);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .utf8-decoder-hero-content h1 {
        font-size: 2rem;
    }
    
    .utf8-decoder-hero-content p {
        font-size: 1rem;
    }
    
    .utf8-decoder-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .utf8-decoder-content-title,
    .utf8-decoder-faq-title {
        font-size: 1.7rem;
    }
    
    .utf8-decoder-subtitle {
        font-size: 1.3rem;
    }
}