/* Palo Alto Networks Page Styles */

/* Overview Section */
.overview-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
}

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

.overview-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.expertise-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: #ffd700;
}

/* Network Diagram */
.network-diagram {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.diagram-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffd700;
}

.diagram-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.client-section, .firewall-section, .threat-prevention {
    text-align: center;
    flex: 1;
}

.client-icon, .firewall-icon, .threat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.client-label, .firewall-label, .threat-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.request-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.arrow {
    font-size: 1.5rem;
    color: #ffd700;
}

.request-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.protection-profiles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.profile {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.intelligence-sources {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.source {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Configuration Section */
.config-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.config-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.config-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-step {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.config-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.step-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.step-description h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-description ul {
    list-style: none;
    padding: 0;
}

.step-description li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.step-description li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.step-description li:last-child {
    border-bottom: none;
}

.step-code {
    background: #2d3748;
    border-radius: 8px;
    padding: 1.5rem;
    color: #e2e8f0;
}

.step-code h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.step-code pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-x: auto;
}

.step-code code {
    color: #e2e8f0;
}

/* Threat Prevention Section */
.threat-prevention-section {
    padding: 4rem 0;
    background: white;
}

.threat-prevention-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.threat-prevention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.prevention-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prevention-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.prevention-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.prevention-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.prevention-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.features h4 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 0.25rem 0;
    color: #666;
    position: relative;
    padding-left: 1.25rem;
}

.features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Best Practices Section */
.best-practices-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.best-practices-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.practice-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.practice-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.practice-card h3 i {
    color: #667eea;
    font-size: 1.1rem;
}

.practice-card ul {
    list-style: none;
    padding: 0;
}

.practice-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.practice-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.practice-card li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .diagram-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .threat-prevention-grid {
        grid-template-columns: 1fr;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-highlights {
        grid-template-columns: 1fr;
    }
    
    .overview-text h2,
    .config-section h2,
    .threat-prevention-section h2,
    .best-practices-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .overview-section,
    .config-section,
    .threat-prevention-section,
    .best-practices-section {
        padding: 2rem 0;
    }
    
    .step-header,
    .step-content {
        padding: 1rem;
    }
    
    .prevention-card,
    .practice-card {
        padding: 1.5rem;
    }
    
    .network-diagram {
        padding: 1rem;
    }
}

/* Code Highlighting */
.step-code pre code {
    color: #e2e8f0;
}

.step-code pre code .comment {
    color: #718096;
}

.step-code pre code .keyword {
    color: #ff6b6b;
}

.step-code pre code .string {
    color: #51cf66;
}

.step-code pre code .number {
    color: #ffd43b;
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-step,
.prevention-card,
.practice-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
.step-code pre::-webkit-scrollbar {
    height: 8px;
}

.step-code pre::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 4px;
}

.step-code pre::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.step-code pre::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
