/* Neural Network Playground Specific Styles */

.pg-scope .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.pg-scope .tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
}

.pg-scope .title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg-scope .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0;
}

/* How to Use Guide */
.pg-scope .how-to-use {
    margin-bottom: 2rem;
    padding: 2rem;
}

.pg-scope .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.pg-scope .section-title span {
    font-size: 1.8rem;
}

.pg-scope .usage-steps {
    display: grid;
    gap: 1.5rem;
}

.pg-scope .usage-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.pg-scope .usage-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pg-scope .usage-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.pg-scope .usage-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Demo Playground */
.pg-scope .demo-playground {
    margin-bottom: 2rem;
    padding: 2rem;
}

.pg-scope .playground-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Network Visualization */
.pg-scope .network-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.pg-scope .network-canvas-wrapper {
    position: relative;
    background: rgba(var(--primary-color-rgb), 0.03);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pg-scope #network-canvas {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: crosshair;
}

.pg-scope .network-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Controls Section */
.pg-scope .controls-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .pg-scope .controls-section {
        grid-template-columns: 1fr;
    }
}

.pg-scope .input-section,
.pg-scope .network-settings {
    background: rgba(var(--secondary-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.1);
}

.pg-scope .input-section h3,
.pg-scope .network-settings h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pg-scope .input-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg-scope .input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg-scope .input-group label {
    min-width: 120px;
    font-weight: 500;
    color: var(--text-primary);
}

.pg-scope .input-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.pg-scope .input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

/* Preset Examples */
.pg-scope .preset-examples h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pg-scope .example-btn {
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(var(--accent-color-rgb), 0.3);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pg-scope .example-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Network Settings */
.pg-scope .settings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pg-scope .setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pg-scope .setting-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.pg-scope .setting-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(var(--primary-color-rgb), 0.2);
    outline: none;
    cursor: pointer;
}

.pg-scope .setting-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pg-scope .setting-group select {
    padding: 0.5rem;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
}

.pg-scope .setting-value {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Action Buttons */
.pg-scope .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pg-scope .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg-scope .btn-primary {
    background: var(--primary-color);
    color: white;
}

.pg-scope .btn-primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.pg-scope .btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.pg-scope .btn-secondary:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--secondary-color-rgb), 0.3);
}

.pg-scope .btn-accent {
    background: var(--accent-color);
    color: white;
}

.pg-scope .btn-accent:hover {
    background: var(--accent-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

.pg-scope .btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(var(--primary-color-rgb), 0.3);
}

.pg-scope .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Network Information */
.pg-scope .network-info {
    margin-bottom: 2rem;
}

.pg-scope .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.pg-scope .info-card {
    background: rgba(var(--accent-color-rgb), 0.05);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.pg-scope .info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pg-scope .info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Educational Content */
.pg-scope .educational-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pg-scope .step-card {
    padding: 2rem;
}

.pg-scope .step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg-scope .step-number {
    font-size: 1.5rem;
}

.pg-scope .step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Concept Explanation */
.pg-scope .concept-explanation {
    display: grid;
    gap: 1.5rem;
}

.pg-scope .concept-item {
    padding: 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.pg-scope .concept-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.pg-scope .concept-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Flow */
.pg-scope .process-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pg-scope .flow-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pg-scope .flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pg-scope .flow-content {
    flex: 1;
    padding-top: 0.5rem;
}

.pg-scope .flow-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.pg-scope .flow-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pg-scope .flow-content ol,
.pg-scope .flow-content ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.pg-scope .flow-content ol li,
.pg-scope .flow-content ul li {
    margin-bottom: 0.25rem;
}

/* Components Grid */
.pg-scope .components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pg-scope .component-card {
    background: rgba(var(--secondary-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.1);
    text-align: center;
}

.pg-scope .component-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pg-scope .component-card h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.pg-scope .component-card p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.pg-scope .component-formula {
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.pg-scope .component-formula code {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.pg-scope .component-range,
.pg-scope .component-purpose {
    background: rgba(var(--accent-color-rgb), 0.1);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 1rem;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Activation Examples */
.pg-scope .activation-examples {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pg-scope .activation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 6px;
}

.pg-scope .activation-name {
    font-weight: 600;
    color: var(--primary-color);
}

.pg-scope .activation-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Learning Process */
.pg-scope .learning-process {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pg-scope .learning-phase {
    background: rgba(var(--accent-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.pg-scope .phase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pg-scope .phase-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
}

.pg-scope .phase-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.pg-scope .phase-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pg-scope .phase-content ol,
.pg-scope .phase-content ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.pg-scope .phase-content ol li,
.pg-scope .phase-content ul li {
    margin-bottom: 0.25rem;
}

.pg-scope .formula-box {
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.pg-scope .formula-box code {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Network Types */
.pg-scope .network-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pg-scope .type-card {
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.pg-scope .type-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pg-scope .type-card h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.pg-scope .type-card p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.pg-scope .type-use-cases {
    background: rgba(var(--secondary-color-rgb), 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.pg-scope .type-use-cases strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.pg-scope .type-use-cases span {
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
}

/* Applications Grid */
.pg-scope .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pg-scope .application-card {
    background: rgba(var(--accent-color-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.pg-scope .application-card:hover {
    transform: translateY(-2px);
}

.pg-scope .app-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.pg-scope .application-card h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.pg-scope .application-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Fixed Actions */
.pg-scope .fixed-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.pg-scope .fixed-actions .btn {
    min-width: 160px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .pg-scope .fixed-actions {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .pg-scope .fixed-actions .btn {
        min-width: auto;
        flex: 1;
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pg-scope .container {
        padding: 1rem;
    }
    
    .pg-scope .title {
        font-size: 2rem;
    }
    
    .pg-scope .playground-title {
        font-size: 1.5rem;
    }
    
    .pg-scope #network-canvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .pg-scope .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .pg-scope .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .pg-scope .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pg-scope .components-grid,
    .pg-scope .network-types,
    .pg-scope .applications-grid {
        grid-template-columns: 1fr;
    }
}