/* ===================================================================
   Converter Hub Styles - File Conversion Center
   ================================================================ */

/* Converter Hub Section */
.converter-hub-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.converter-hub-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.converter-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hub Title */
.hub-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hub-subtitle {
    font-size: 1.2rem;
    text-align: center;
    opacity: 0.95;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Category Card Grid */
.converter-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Category Card */
.converter-category-card {
    background: white;
    color: #333;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.converter-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.converter-category-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.converter-category-card:hover::before {
    transform: scaleX(1);
}

/* Category Icon */
.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.converter-category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Category Title */
.category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

/* Category Description */
.category-desc {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Category Features */
.category-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
}

.category-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: #4a5568;
    transition: all 0.2s ease;
}

.category-features li:last-child {
    border-bottom: none;
}

.category-features li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.category-features li:hover {
    color: #667eea;
    transform: translateX(5px);
}

/* Category Button */
.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    cursor: pointer;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.category-btn:active {
    transform: translateY(0);
}

.category-btn svg {
    transition: transform 0.3s ease;
}

.category-btn:hover svg {
    transform: translateX(5px);
}

/* Popular Tools Section */
.popular-tools-section {
    text-align: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.popular-tools-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.popular-tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.popular-tool-tag {
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.popular-tool-tag:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Recent Tools Section */
.recent-tools-section {
    text-align: center;
    margin-top: 2rem;
}

.recent-tools-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
}

/* Badge */
.converter-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .converter-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .converter-hub-section {
        padding: 60px 15px;
    }

    .hub-title {
        font-size: 2rem;
    }

    .hub-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .converter-category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .converter-category-card {
        padding: 2rem;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-title {
        font-size: 1.4rem;
    }

    .popular-tools-section h3 {
        font-size: 1.5rem;
    }

    .popular-tool-tag {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .converter-hub-section {
        padding: 40px 10px;
    }

    .hub-title {
        font-size: 1.75rem;
    }

    .category-btn {
        width: 100%;
        justify-content: center;
    }

    .popular-tools-list {
        gap: 0.75rem;
    }

    .popular-tool-tag {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.converter-category-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.converter-category-card:nth-child(1) { animation-delay: 0.1s; }
.converter-category-card:nth-child(2) { animation-delay: 0.2s; }
.converter-category-card:nth-child(3) { animation-delay: 0.3s; }
.converter-category-card:nth-child(4) { animation-delay: 0.4s; }
.converter-category-card:nth-child(5) { animation-delay: 0.5s; }
.converter-category-card:nth-child(6) { animation-delay: 0.6s; }
