/* Main Container */
.unicode-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section */
.unicode-hero {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.unicode-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.unicode-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.unicode-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    line-height: 1.6;
}

.unicode-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
}

/* Tool Section */
.unicode-tool-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.unicode-input-container,
.unicode-output-container {
    margin-bottom: 2rem;
}

.unicode-input-label,
.unicode-output-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #444;
}

.unicode-input,
.unicode-output {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.unicode-input:focus {
    border-color: #6e8efb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.unicode-output {
    background-color: #f9f9f9;
    min-height: 100px;
    font-family: monospace;
}

.unicode-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.unicode-style-options {
    flex-grow: 1;
}

.unicode-option-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.unicode-style-select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.unicode-output-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Buttons */
.unicode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.unicode-btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.unicode-generate-btn {
    background-color: #6e8efb;
    color: white;
}

.unicode-generate-btn:hover {
    background-color: #5a7df4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

.unicode-copy-btn {
    background-color: #4CAF50;
    color: white;
}

.unicode-copy-btn:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.unicode-clear-btn {
    background-color: #f44336;
    color: white;
}

.unicode-clear-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

/* Preview Section */
.unicode-preview-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.unicode-section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #444;
    position: relative;
    padding-bottom: 0.5rem;
}

.unicode-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    border-radius: 2px;
}

.unicode-preview-box {
    background: #f5f7ff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unicode-preview-text {
    font-size: 1.5rem;
    margin: 0;
    word-break: break-word;
}

/* Info Grid */
.unicode-info-section {
    margin: 3rem 0;
}

.unicode-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.unicode-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.unicode-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.unicode-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.unicode-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #444;
}

.unicode-info-card p {
    color: #666;
    line-height: 1.6;
}

/* Usage Steps */
.unicode-usage-section {
    margin: 3rem 0;
}

.unicode-usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.unicode-step {
    display: flex;
    gap: 1.5rem;
}

.unicode-step-number {
    background: linear-gradient(to bottom right, #6e8efb, #a777e3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.unicode-step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.unicode-step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.unicode-faq-section {
    margin: 3rem 0;
}

.unicode-faq-container {
    margin-top: 2rem;
}

.unicode-faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.unicode-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: white;
    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;
}

.unicode-faq-question:hover {
    background-color: #f9f9f9;
}

.unicode-faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.unicode-faq-question.active .unicode-faq-icon {
    transform: rotate(45deg);
}

.unicode-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: white;
}

.unicode-faq-answer p {
    padding-bottom: 1.5rem;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.unicode-faq-item.active .unicode-faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* Related Tool */
.unicode-related-tool {
    margin: 3rem 0;
}

.unicode-related-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.unicode-related-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #444;
}

.unicode-related-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.unicode-related-link {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.unicode-related-link:hover {
    text-decoration: underline;
}

.unicode-related-btn {
    background: linear-gradient(to right, #6e8efb, #a777e3);
    color: white;
    margin-top: 1rem;
}

.unicode-related-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(110, 142, 251, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .unicode-hero h1 {
        font-size: 2.2rem;
    }
    
    .unicode-subtitle {
        font-size: 1rem;
    }
    
    .unicode-controls {
        flex-direction: column;
    }
    
    .unicode-style-options {
        width: 100%;
    }
    
    .unicode-output-actions {
        flex-direction: column;
    }
    
    .unicode-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .unicode-hero {
        padding: 2rem 1rem;
    }
    
    .unicode-tool-section,
    .unicode-preview-section {
        padding: 1.5rem;
    }
    
    .unicode-section-title {
        font-size: 1.5rem;
    }
    
    .unicode-info-grid,
    .unicode-usage-steps {
        grid-template-columns: 1fr;
    }
}