/* Products Dynamic Page - Modern Compact Design */

/* Hero Section */
.pd-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.pd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 128, 128, 0.1);
    border: 1px solid rgba(0, 128, 128, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.85rem;
    color: #008080;
}

.pd-hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #008080;
    border-radius: 50%;
}

.pd-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.pd-hero-highlight {
    background: linear-gradient(135deg, rgba(0, 128, 128, 0.15) 0%, rgba(0, 128, 128, 0.08) 100%);
    padding: 0 0.5rem;
    border-radius: 4px;
    color: #008080;
}

.pd-hero-description {
    font-size: 0.8rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.pd-hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pd-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #008080;
}

.pd-stat-label {
    font-size: 0.7rem;
    opacity: 0.7;
    color: #64748b;
}

/* Product Graph Section */
.pd-graph-section {
    padding: 3rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.pd-graph-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pd-graph-title {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pd-graph-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.pd-graph-container {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#productGraphCanvas {
    display: block;
    width: 100%;
    height: 600px;
    cursor: grab;
}

#productGraphCanvas:active {
    cursor: grabbing;
}

.pd-graph-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pd-graph-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.pd-graph-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.pd-graph-legend-dot.central {
    background: #008080;
}

.pd-graph-legend-dot.module {
    background: #0891b2;
}

.pd-graph-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
}

/* Overview Section */
.pd-overview {
    padding: 2.5rem 0;
    background: white;
}

.pd-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pd-section-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pd-section-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Module Cards Grid */
.pd-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.pd-module-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pd-module-card:hover {
    border-color: #008080;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.15);
    transform: translateY(-3px);
}

.pd-module-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    margin-bottom: 0.85rem;
}

.pd-module-card h3 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.pd-module-card p {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.85rem;
    flex: 1;
}

.pd-module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    background: #f8fafc;
    color: #008080;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.pd-module-link:hover {
    background: #008080;
    color: white;
    transform: translateX(3px);
}

/* Detail Sections */
.pd-detail-section {
    padding: 2.5rem 0;
}

.pd-detail-section:nth-child(even) {
    background: #f8fafc;
}

.pd-detail-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pd-detail-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pd-detail-title-icon {
    font-size: 1.75rem;
}

.pd-detail-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.pd-detail-description {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Accordion */
.pd-feature-accordion {
    margin-bottom: 1rem;
}

.pd-feature-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pd-feature-header:hover {
    border-color: #008080;
    background: #f8fafc;
}

.pd-feature-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pd-feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.pd-feature-title {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

.pd-feature-expand {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.pd-feature-expand.active {
    transform: rotate(180deg);
}

.pd-feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 6px 6px;
    margin-top: -6px;
}

.pd-feature-content.active {
    border-top: 1px dashed var(--border-light);
}

.pd-feature-points {
    list-style: none;
    padding: 1rem 1.1rem;
    margin: 0;
}

.pd-feature-points li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    position: relative;
    font-size: 0.75rem;
    line-height: 1.6;
}

.pd-feature-points li:last-child {
    margin-bottom: 0;
}

.pd-feature-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #008080;
    font-weight: 700;
}

/* Submodules Section */
.pd-submodules {
    margin-top: 2.5rem;
}

.pd-submodules-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-align: center;
}

/* CTA Section */
.pd-cta {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
}

.pd-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.pd-cta p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.pd-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.pd-btn-primary {
    background: white;
    color: #008080;
}

.pd-btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pd-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1.5px solid white;
}

.pd-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Empty State */
.pd-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.pd-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.pd-empty h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pd-empty p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pd-hero {
        padding: 120px 0 50px;
    }

    .pd-hero h1 {
        font-size: 1.5rem;
    }

    .pd-hero-description {
        font-size: 0.75rem;
    }

    .pd-hero-stats {
        gap: 1.25rem;
    }

    .pd-stat-value {
        font-size: 1.25rem;
    }

    .pd-modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 0.85rem;
    }

    .pd-section-title,
    .pd-detail-title {
        font-size: 1.25rem;
    }

    .pd-feature-header {
        padding: 0.75rem 0.85rem;
    }

    .pd-feature-title {
        font-size: 0.8rem;
    }

    .pd-cta h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .pd-hero {
        padding: 110px 0 40px;
    }

    .pd-overview,
    .pd-detail-section,
    .pd-cta {
        padding: 2rem 0;
    }

    .pd-modules-grid {
        grid-template-columns: 1fr;
    }

    .pd-hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .pd-cta-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }
}
