/* Main Container Styles */
.url-decoder-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section Styles */
.url-decoder-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.url-decoder-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.url-decoder-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Tool Section Styles */
.url-decoder-tool-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.url-decoder-input-container,
.url-decoder-output-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.url-decoder-input-label,
.url-decoder-output-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
}

.url-decoder-input,
.url-decoder-output {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.url-decoder-input:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.url-decoder-output-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.url-decoder-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.url-decoder-decode-btn {
    background-color: #4CAF50;
    color: white;
}

.url-decoder-decode-btn:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
}

.url-decoder-clear-btn {
    background-color: #f44336;
    color: white;
}

.url-decoder-clear-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

.url-decoder-copy-btn {
    background-color: #2196F3;
    color: white;
}

.url-decoder-copy-btn:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
}

.url-decoder-download-btn {
    background-color: #ff9800;
    color: white;
}

.url-decoder-download-btn:hover {
    background-color: #e68a00;
    transform: translateY(-2px);
}

/* Info Section Styles */
.url-decoder-info-section {
    margin-bottom: 4rem;
}

.url-decoder-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #444;
    position: relative;
}

.url-decoder-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.url-decoder-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.url-decoder-info-box {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 4px solid #6e8efb;
}

.url-decoder-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.url-decoder-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #6e8efb;
}

.url-decoder-info-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.url-decoder-info-content {
    color: #666;
    line-height: 1.6;
}

/* Content Section Styles */
.url-decoder-content-section {
    margin-bottom: 4rem;
}

.url-decoder-content-shape {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #6e8efb, #a777e3);
    border-radius: 30px;
    transform: rotate(45deg);
    float: right;
    shape-outside: circle();
    margin: 0 0 1rem 2rem;
    opacity: 0.2;
}

.url-decoder-content-text {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.url-decoder-content-subtitle {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #444;
}

.url-decoder-content-list {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.url-decoder-content-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.url-decoder-related-tool {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    border-left: 4px solid #6e8efb;
}

.url-decoder-related-link {
    color: #6e8efb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.url-decoder-related-link:hover {
    color: #a777e3;
    text-decoration: underline;
}

/* FAQ Section Styles */
.url-decoder-faq-section {
    margin-bottom: 2rem;
}

.url-decoder-faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.url-decoder-faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    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 0.3s;
}

.url-decoder-faq-question:hover {
    background: #f8f9fa;
}

.url-decoder-faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.url-decoder-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: white;
}

.url-decoder-faq-answer p {
    padding-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.url-decoder-faq-item.active .url-decoder-faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.url-decoder-faq-item.active .url-decoder-faq-icon {
    transform: rotate(45deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .url-decoder-title {
        font-size: 2rem;
    }
    
    .url-decoder-subtitle {
        font-size: 1rem;
    }
    
    .url-decoder-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .url-decoder-content-shape {
        float: none;
        margin: 0 auto 2rem;
        display: block;
    }
    
    .url-decoder-faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .url-decoder-hero {
        padding: 1.5rem;
    }
    
    .url-decoder-title {
        font-size: 1.8rem;
    }
    
    .url-decoder-btn {
        width: 100%;
    }
    
    .url-decoder-output-actions {
        flex-direction: column;
    }
}