/* Module Pages Specific Styles */

/* Module Hero Section */
.module-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
}

.module-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    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%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='50' cy='50' r='40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 100px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100px 100px;
    }
}

.module-hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.module-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.module-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.module-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Module Overview */
.module-overview {
    padding: 100px 0;
    background: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-content h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.overview-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.overview-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.overview-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

/* Module Features */
.module-features-section {
    padding: 100px 0;
    background: var(--light-color);
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    transform: rotate(45deg);
    transition: var(--transition);
}

.feature-icon-wrapper i {
    transform: rotate(-45deg);
}

.feature-box:hover .feature-icon-wrapper {
    transform: rotate(0deg);
}

.feature-box h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

/* Technical Architecture */
.tech-architecture {
    padding: 100px 0;
    background: white;
}

.architecture-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.arch-component {
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.arch-component h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.arch-component h3 i {
    color: var(--primary-color);
}

.arch-component ul {
    list-style: none;
}

.arch-component li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 20px;
}

.arch-component li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Use Cases */
.use-cases {
    padding: 100px 0;
    background: var(--light-color);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.use-case:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
}

.use-case-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px dashed #667eea;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.use-case h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Integration Section */
.integration-section {
    padding: 100px 0;
    background: white;
}

.integration-diagram {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    min-height: 400px;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.central-node i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.connected-nodes {
    position: relative;
    height: 400px;
}

.connected-nodes .node {
    position: absolute;
    width: 140px;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.connected-nodes .node:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.connected-nodes .node:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.connected-nodes .node:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.connected-nodes .node:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.connected-nodes .node::before {
    content: '';
    position: absolute;
    background: #e2e8f0;
    z-index: -1;
}

.connected-nodes .node:nth-child(1)::before,
.connected-nodes .node:nth-child(3)::before {
    width: 2px;
    height: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.connected-nodes .node:nth-child(1)::before {
    top: 100%;
}

.connected-nodes .node:nth-child(3)::before {
    bottom: 100%;
}

.connected-nodes .node:nth-child(2)::before,
.connected-nodes .node:nth-child(4)::before {
    height: 2px;
    width: 100px;
    top: 50%;
    transform: translateY(-50%);
}

.connected-nodes .node:nth-child(2)::before {
    left: -100px;
}

.connected-nodes .node:nth-child(4)::before {
    right: -100px;
}

.connected-nodes .node:hover {
    transform: scale(1.1) translateX(-50%);
    box-shadow: var(--shadow-lg);
}

.connected-nodes .node i {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.connected-nodes .node span {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.connected-nodes .node p {
    font-size: 0.75rem;
    color: var(--text-color);
}

/* Module CTA */
.module-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Module Pages */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .connected-nodes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        height: auto;
    }
    
    .connected-nodes .node {
        position: static;
        transform: none !important;
    }
    
    .connected-nodes .node::before {
        display: none;
    }
    
    .central-node {
        position: static;
        transform: none;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 768px) {
    .module-hero-title {
        font-size: 2rem;
    }
    
    .module-hero-subtitle {
        font-size: 1rem;
    }
    
    .architecture-details {
        grid-template-columns: 1fr;
    }
    
    .overview-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
