/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Ad Containers */
.ad-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
    text-align: center;
}

.ad-container.top-ad {
    margin-top: 0;
    padding-top: 2rem;
}

.ad-container.bottom-ad {
    margin-bottom: 0;
    padding-bottom: 2rem;
}

.ad-container.content-ad {
    margin: 2rem auto;
}

/* Guide Container */
.e18d80nk-guide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.e18d80nk-header {
    background: linear-gradient(135deg, #4a8eff, #2a6bda);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.e18d80nk-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.e18d80nk-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Sections */
.e18d80nk-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Headings */
.e18d80nk-guide h2 {
    color: #4a8eff;
    border-bottom: 2px solid #6da1ff;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.e18d80nk-guide h3 {
    color: #6da1ff;
    margin-top: 1.5rem;
}

/* Feature Cards */
.e18d80nk-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.e18d80nk-feature-card {
    background: #ebf2ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #6da1ff;
}

.e18d80nk-feature-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.e18d80nk-icon {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

/* Tables */
.e18d80nk-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.e18d80nk-specs, 
.e18d80nk-pin-table {
    width: 100%;
    border-collapse: collapse;
}

.e18d80nk-specs th, 
.e18d80nk-specs td,
.e18d80nk-pin-table th,
.e18d80nk-pin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.e18d80nk-specs th {
    background: #ebf2ff;
    color: #4a8eff;
}

.e18d80nk-pin-table th {
    background: #4a8eff;
    color: white;
}

/* Code Blocks */
pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    border-left: 4px solid #6da1ff;
    margin: 1rem 0;
}

/* Notes */
.e18d80nk-note {
    background: #ebf2ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #4a8eff;
    margin: 1rem 0;
}

/* Images */
.e18d80nk-image {
    text-align: center;
    margin: 1.5rem 0;
}

.e18d80nk-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Pinout Layout */
.e18d80nk-pinout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
}

.e18d80nk-pinout > * {
    flex: 1;
    min-width: 300px;
}

/* Advanced Applications Grid */
.e18d80nk-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.e18d80nk-feature-box {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 6px;
}

/* Troubleshooting */
.e18d80nk-troubleshooting {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.e18d80nk-issue {
    background: #ffebee;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #f44336;
}

/* Footer Projects */
.e18d80nk-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.e18d80nk-project-card {
    background: #ebf2ff;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .e18d80nk-header h1 {
        font-size: 1.5rem;
    }
    
    .e18d80nk-pinout {
        flex-direction: column;
    }
    
    .e18d80nk-features,
    .e18d80nk-feature-grid,
    .e18d80nk-troubleshooting,
    .e18d80nk-projects {
        grid-template-columns: 1fr;
    }
    
    .ad-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .e18d80nk-header {
        padding: 1.5rem 1rem;
    }
    
    .e18d80nk-section {
        padding: 1rem;
    }
    
    pre {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}