/* Main Container Styles */
.code-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Hero Section Styles */
.code-tools-hero {
    position: relative;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 50px;
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.code-tools-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.code-tools-main-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.code-tools-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.code-tools-hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape-1, .shape-2, .shape-3 {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20px;
    left: -50px;
}

/* Tool Categories Styles */
.code-tool-category {
    margin-bottom: 50px;
}

.code-tool-category-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #444;
    position: relative;
}

.code-tool-category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
}

.code-tool-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.code-tool-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.code-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #6e8efb;
}

.code-tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.code-tool-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.code-tool-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #444;
}

.code-tool-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Info Boxes Section */
.code-tools-info-section {
    margin: 60px 0;
}

.code-tools-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.code-tools-info-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.code-tools-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-box-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.info-box-icon svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.code-tools-info-box h3 {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    color: #444;
}

.code-tools-info-box p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Content Section Styles */
.code-tools-content-section {
    margin: 60px 0;
}

.code-tools-content-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #444;
    position: relative;
}

.code-tools-content-decorative-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.code-tools-content-paragraph {
    max-width: 800px;
    margin: 0 auto 25px auto;
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
    text-align: center;
}

.code-tools-content-highlight {
    background: #f9f9ff;
    border-left: 4px solid #6e8efb;
    padding: 25px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
    overflow: hidden;
}

.highlight-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), rgba(167, 119, 227, 0.1));
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.code-tools-content-highlight h3 {
    font-size: 1.4rem;
    margin: 0 0 15px 0;
    color: #444;
    position: relative;
}

.code-tools-benefits-list {
    padding-left: 20px;
    margin: 0;
}

.code-tools-benefits-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.code-tools-benefits-list li strong {
    color: #444;
}

.code-tools-related-tool {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: #f5f7ff;
    border-radius: 10px;
}

.code-tools-related-tool h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: normal;
}

.code-tools-related-tool a {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 600;
}

.code-tools-related-tool a:hover {
    text-decoration: underline;
}

/* FAQ Section Styles */
.code-tools-faq-section {
    margin: 60px 0;
}

.code-tools-faq-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #444;
}

.code-tools-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.code-tools-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.code-tools-faq-question {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #444;
    transition: background 0.2s ease;
}

.code-tools-faq-question:hover {
    background: #f9f9ff;
}

.faq-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: #666;
}

.code-tools-faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.code-tools-faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: white;
}

.code-tools-faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.code-tools-faq-answer a {
    color: #6e8efb;
    text-decoration: none;
}

.code-tools-faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .code-tools-hero {
        padding: 30px 20px;
    }
    
    .code-tools-main-title {
        font-size: 2rem;
    }
    
    .code-tools-subtitle {
        font-size: 1rem;
    }
    
    .code-tool-cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .code-tools-info-boxes {
        grid-template-columns: 1fr;
    }
    
    .code-tools-content-paragraph {
        text-align: left;
        padding: 0 15px;
    }
    
    .code-tools-faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .code-tools-hero {
        padding: 25px 15px;
    }
    
    .code-tools-main-title {
        font-size: 1.6rem;
    }
    
    .code-tool-category-title {
        font-size: 1.5rem;
    }
    
    .code-tool-card {
        padding: 20px;
    }
    
    .code-tools-info-box {
        padding: 25px;
    }
    
    .code-tools-content-title, 
    .code-tools-faq-title {
        font-size: 1.7rem;
    }
}