/* Content Sections */
.content-sections {
    max-width: 750px;
    margin: 3rem auto;
    padding: 0 var(--spacing-md);
}

.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232563eb' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.03;
    z-index: 0;
    transition: opacity var(--transition-normal);
}

.hero-section:hover::before {
    opacity: 0.05;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

/* Details/Summary Sections */
details {
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    transition: all var(--transition-normal);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

details::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

details[open] {
    box-shadow: var(--hover-shadow);
    border-color: rgba(37, 99, 235, 0.2);
}

details[open]::before {
    opacity: 0.02;
}

summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    font-size: 1.2rem;
    list-style: none;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-color);
    z-index: 1;
}

summary:hover {
    background: var(--hover-color);
    transform: translateX(5px);
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1em;
    transition: transform var(--transition-normal);
    color: var(--primary-color);
}

details[open] summary::before {
    transform: rotate(90deg);
}

.details-content {
    padding: var(--spacing-lg);
    animation: slideDown var(--transition-normal);
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, var(--surface-color), var(--surface-hover));
}

/* Real World Example */
.real-world-example {
    background: linear-gradient(135deg, var(--hover-color), var(--surface-color));
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    border-left: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.real-world-example:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.real-world-example::before {
    content: '\f0eb';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 5rem;
    opacity: 0.1;
    transform: rotate(15deg);
    transition: transform var(--transition-normal);
}

.real-world-example:hover::before {
    transform: rotate(25deg) scale(1.1);
}

/* Feature List */
.feature-list {
    list-style: none !important;
    padding-left: 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--spacing-sm);
}

.feature-list li {
    padding: var(--spacing-sm);
    position: relative;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-list li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.1rem;
}

.feature-list li[data-icon="check"]::before {
    content: '\f00c';
    color: var(--success-color);
}

.feature-list li[data-icon="times"]::before {
    content: '\f00d';
    color: var(--danger-color);
}

.feature-list li:hover {
    background: var(--surface-color);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* Category Headers */
.details-content h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hover-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.details-content h4 i {
    font-size: 1.1em;
    color: var(--primary-color);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-sections {
        margin: 2rem auto;
    }

    .hero-section {
        padding: 2rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
