/* Base Styles */
.base32-encoder-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section */
.base32-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.base32-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}

.base32-main-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.base32-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.base32-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.base32-shape-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.base32-shape-2 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.base32-shape-3 {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    top: 50%;
    left: 70%;
    transform: rotate(45deg);
}

/* Tool Section */
.base32-tool-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.base32-input-container,
.base32-output-container {
    flex: 1;
}

.base32-input-label,
.base32-output-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
    font-size: 1.1rem;
}

.base32-input-textarea,
.base32-output-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.base32-input-textarea:focus {
    outline: none;
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
}

.base32-output-textarea {
    background-color: #f8f9fa;
    color: #495057;
}

.base32-input-buttons,
.base32-output-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.base32-clear-btn,
.base32-sample-btn,
.base32-copy-btn,
.base32-download-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.base32-clear-btn {
    background-color: #f1f1f1;
    color: #555;
}

.base32-clear-btn:hover {
    background-color: #e0e0e0;
}

.base32-sample-btn {
    background-color: #e3f2fd;
    color: #1976d2;
}

.base32-sample-btn:hover {
    background-color: #bbdefb;
}

.base32-copy-btn {
    background-color: #4caf50;
    color: white;
}

.base32-copy-btn:hover {
    background-color: #3d8b40;
}

.base32-download-btn {
    background-color: #2196f3;
    color: white;
}

.base32-download-btn:hover {
    background-color: #0b7dda;
}

/* Info Boxes */
.base32-info-section {
    margin-bottom: 3rem;
}

.base32-section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.base32-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #6e8efb, #a777e3);
}

.base32-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.base32-info-box {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #6e8efb;
}

.base32-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.base32-info-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.base32-info-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.base32-info-text {
    color: #666;
    line-height: 1.6;
}

.base32-box-1 {
    border-top-color: #6e8efb;
}

.base32-box-2 {
    border-top-color: #a777e3;
}

.base32-box-3 {
    border-top-color: #4caf50;
}

/* COMPLETELY REVISED Details Section */
.base32-details-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.base32-detail-content {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
}

.base32-visual-element {
    width: 100%;
    height: 250px;
    position: relative;
    margin: 0 auto;
    z-index: 1;
}

.base32-detail-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.base32-detail-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.base32-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    z-index: 3;
    position: relative;
}

.base32-feature {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(110, 142, 251, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.base32-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.base32-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: rgba(110, 142, 251, 0.1);
}

.base32-feature-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.base32-feature-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.base32-visual-shape {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #6e8efb, #a777e3);
    border-radius: 30px;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
    animation: base32-float 6s ease-in-out infinite;
    opacity: 0.8;
    z-index: 1;
}

.base32-visual-animation {
    width: 250px;
    height: 250px;
    border: 15px solid rgba(110, 142, 251, 0.1);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: base32-pulse 4s ease-in-out infinite;
    z-index: 0;
}

/* FAQ Section */
.base32-faq-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.base32-faq-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
}

.base32-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.base32-faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.base32-faq-question {
    width: 100%;
    text-align: left;
    padding: 1.2rem;
    background: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.base32-faq-question:hover {
    background: #f8f9fa;
}

.base32-faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.base32-faq-answer {
    padding: 0 1.2rem;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.base32-faq-answer p {
    padding: 1rem 0;
    color: #555;
    line-height: 1.7;
}

.base32-faq-item.active .base32-faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1.2rem;
}

.base32-faq-item.active .base32-faq-icon {
    transform: rotate(45deg);
}

/* Related Tools */
.base32-related-tools {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.base32-related-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
}

.base32-related-container {
    display: flex;
    justify-content: center;
}

.base32-related-tool {
    display: block;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    max-width: 300px;
    text-align: center;
    border: 1px solid rgba(110, 142, 251, 0.1);
}

.base32-related-tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.base32-related-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6e8efb;
}

.base32-related-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #444;
}

.base32-related-desc {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Animations */
@keyframes base32-float {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(15deg);
    }
    50% {
        transform: translateX(-50%) translateY(-20px) rotate(20deg);
    }
}

@keyframes base32-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.4;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .base32-details-section {
        padding: 1.5rem;
    }
    
    .base32-visual-element {
        height: 200px;
    }
    
    .base32-visual-shape {
        width: 150px;
        height: 150px;
        top: 25px;
    }
    
    .base32-visual-animation {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .base32-main-title {
        font-size: 2rem;
    }
    
    .base32-subtitle {
        font-size: 1rem;
    }
    
    .base32-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .base32-feature-list {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .base32-detail-title {
        font-size: 1.6rem;
    }
    
    .base32-visual-element {
        height: 180px;
    }
    
    .base32-visual-shape {
        width: 120px;
        height: 120px;
    }
    
    .base32-visual-animation {
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 480px) {
    .base32-hero {
        padding: 1.5rem;
    }
    
    .base32-main-title {
        font-size: 1.8rem;
    }
    
    .base32-input-buttons,
    .base32-output-buttons {
        flex-direction: column;
    }
    
    .base32-visual-element {
        height: 150px;
    }
    
    .base32-visual-shape {
        width: 100px;
        height: 100px;
        top: 25px;
    }
    
    .base32-visual-animation {
        width: 140px;
        height: 140px;
    }
    
    .base32-feature {
        padding: 1.2rem;
    }
    
    .base32-faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
}