/* Developer Tools Homepage Styles */

/* Hero Section - Matching Bot Pages Style */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tool Cards - Enhanced for better visibility */
.tool-card-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.tool-card.border-left-primary {
    border-left-color: #4e73df !important;
    background: linear-gradient(145deg, #ffffff 0%, rgba(78, 115, 223, 0.02) 100%);
}

.tool-card.border-left-success {
    border-left-color: #1cc88a !important;
    background: linear-gradient(145deg, #ffffff 0%, rgba(28, 200, 138, 0.02) 100%);
}

.tool-card.border-left-info {
    border-left-color: #36b9cc !important;
    background: linear-gradient(145deg, #ffffff 0%, rgba(54, 185, 204, 0.02) 100%);
}

.tool-card.border-left-warning {
    border-left-color: #f6c23e !important;
    background: linear-gradient(145deg, #ffffff 0%, rgba(246, 194, 62, 0.02) 100%);
}

.tool-card.border-left-danger {
    border-left-color: #e74a3b !important;
    background: linear-gradient(145deg, #ffffff 0%, rgba(231, 74, 59, 0.02) 100%);
}

.tool-card.border-left-secondary {
    border-left-color: #858796 !important;
    background: linear-gradient(145deg, #ffffff 0%, rgba(133, 135, 150, 0.02) 100%);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tool-card:hover .tool-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.tool-card .card-body {
    padding: 2rem 1.5rem 1rem;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-card .card-footer {
    padding: 0 1.5rem 2rem;
    background: transparent;
    border: none;
    border-radius: 0 0 16px 16px;
    margin-top: auto;
}

.tool-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tool-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 0;
}

.tool-card small {
    font-size: 0.8rem;
    color: #8E9BAE;
    font-weight: 500;
}

.tool-card:hover h5 {
    transform: translateY(-2px);
}

.tool-card:hover p {
    color: #495057;
}

.tool-card:hover small {
    color: #6c757d;
}

/* Categories Section */
.features-section {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid rgba(103, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(103, 126, 234, 0.1), transparent);
    border-radius: 50%;
}

.features-content {
    position: relative;
    z-index: 2;
}

.features-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(103, 126, 234, 0.3);
}

.features-title {
    color: #667eea;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.features-text {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Categories Section */
.tools-main-section {
    background: rgba(248, 249, 250, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 1rem;
    position: relative;
}

.categories-section {
    margin: 0 0 2rem 0;
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.category-subtitle {
    font-size: 1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Floating Action Button */
.floating-help {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(103, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-help:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(103, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }
.fade-in-up.delay-6 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        margin: 0 1rem 1.5rem;
        padding: 2rem 0;
        border-radius: 20px;
    }

    .hero-section::before,
    .hero-section::after {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
        flex-direction: row;
    }

    .stat-item {
        min-width: 100px;
        padding: 1rem 1.5rem;
        border-radius: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .tool-card {
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .tool-card .card-body {
        padding: 1.5rem 1rem 0.75rem;
    }

    .tool-card .card-footer {
        padding: 0 1rem 1.5rem;
    }

    .tool-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .tools-main-section {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .features-section {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .category-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .category-subtitle {
        font-size: 0.85rem;
    }

    .floating-help {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .tool-card .card-body {
        padding: 1.5rem 1rem 0.5rem;
    }

    .tool-card .card-footer {
        padding: 0 1rem 1rem;
    }

    /* 4-column responsive adjustments */
    .col-lg-3 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-stats {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        padding: 1rem 1.25rem;
        min-width: 110px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Mobile 4-column becomes 2-column */
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }

    .row [class*="col-"] {
        margin-bottom: 1.5rem;
    }
}

/* Dark Mode Styles - Matching Bot Pages */
[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%) !important;
}

[data-theme="dark"] .hero-content {
    background: transparent !important;
}

[data-theme="dark"] .hero-section .container-fluid {
    background: transparent !important;
}

[data-theme="dark"] .hero-section::before {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero-section::after {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .hero-title {
    color: white;
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .stat-number {
    color: white;
}

[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .tool-card {
    background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%) !important;
    border: 1px solid #4a5568;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .tool-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.35),
        0 8px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px) scale(1.02);
}

[data-theme="dark"] .tool-card.border-left-primary {
    background: linear-gradient(145deg, #2d3748 0%, rgba(78, 115, 223, 0.08) 100%) !important;
}

[data-theme="dark"] .tool-card.border-left-success {
    background: linear-gradient(145deg, #2d3748 0%, rgba(28, 200, 138, 0.08) 100%) !important;
}

[data-theme="dark"] .tool-card.border-left-info {
    background: linear-gradient(145deg, #2d3748 0%, rgba(54, 185, 204, 0.08) 100%) !important;
}

[data-theme="dark"] .tool-card.border-left-warning {
    background: linear-gradient(145deg, #2d3748 0%, rgba(246, 194, 62, 0.08) 100%) !important;
}

[data-theme="dark"] .tool-card.border-left-danger {
    background: linear-gradient(145deg, #2d3748 0%, rgba(231, 74, 59, 0.08) 100%) !important;
}

[data-theme="dark"] .tool-card.border-left-secondary {
    background: linear-gradient(145deg, #2d3748 0%, rgba(133, 135, 150, 0.08) 100%) !important;
}

[data-theme="dark"] .tool-card h5 {
    color: #e2e8f0;
}

[data-theme="dark"] .tool-card p {
    color: #a0aec0;
}

[data-theme="dark"] .tool-card:hover p {
    color: #cbd5e0;
}

[data-theme="dark"] .tool-card small {
    color: #718096;
}

[data-theme="dark"] .tool-card:hover small {
    color: #a0aec0;
}

[data-theme="dark"] .category-title {
    color: #e2e8f0;
}

[data-theme="dark"] .category-subtitle {
    color: #a0aec0;
}

[data-theme="dark"] .features-section {
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.08), rgba(85, 60, 154, 0.08));
    border-color: rgba(103, 126, 234, 0.2);
}

[data-theme="dark"] .features-title {
    color: #a0aec0;
}

[data-theme="dark"] .features-text {
    color: #a0aec0;
}

/* Dark mode tools main section */
[data-theme="dark"] .tools-main-section {
    background: rgba(45, 55, 72, 0.3);
    border: 1px solid rgba(74, 85, 104, 0.3);
}

[data-theme="dark"] .category-title {
    color: #e2e8f0;
}

[data-theme="dark"] .category-subtitle {
    color: #a0aec0;
}
