/* Standards Page Styles */

/* Hero Section */
.standards-hero {
    padding: 8rem 0 3rem;
    background: var(--bg-dark);
}

.standards-hero .hero-banner {
    text-align: center;
}

.standards-hero h1 {
    font-size: 2.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.standards-hero .hero-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Standards Section */
.standards-section {
    padding: 2rem 0 4rem;
    background: var(--bg-dark);
}

/* Principles Card */
.principles-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.principles-card h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.principle {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.principle:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.principle-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.principle h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.principle p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Standard Cards */
.standard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

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

.standard-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.standard-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.standard-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
    margin-top: 0.25rem;
}

.standard-badge.required {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.standard-badge.governance {
    background: rgba(156, 39, 176, 0.15);
    color: #BA68C8;
}

.standard-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.use-case {
    background: var(--bg-dark);
    border-left: 3px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.use-case strong {
    color: var(--primary-color);
}

/* Schema Blocks */
.schema-block {
    margin-bottom: 1.5rem;
}

.schema-header {
    background: var(--bg-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.schema-header span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.schema-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.schema-table th,
.schema-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schema-table th {
    background: rgba(255, 107, 53, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.schema-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.schema-table tr:last-child td {
    border-bottom: none;
}

.schema-table code {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Example Blocks */
.example-block {
    margin-bottom: 1.5rem;
}

.example-header {
    background: var(--bg-dark);
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.example-header span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.example-block pre {
    background: #0d0d14;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 1.25rem;
    margin: 0;
    overflow-x: auto;
}

.example-block code {
    color: #e0e0e0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Naming Format */
.naming-format {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    padding: 1rem 1.5rem;
}

.naming-format p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.naming-format code {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.naming-format .example-text {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-box {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.info-box h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.info-box code {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

/* Verification Tiers Grid */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tier-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tier-level {
    background: var(--gradient-1);
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.tier-header h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0;
}

.tier-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tier-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tier-features span {
    background: rgba(255, 107, 53, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

/* Tier-specific colors */
.tier-l0 { border-color: #607D8B; }
.tier-l0 .tier-level { background: #607D8B; }

.tier-l1 { border-color: #4CAF50; }
.tier-l1 .tier-level { background: #4CAF50; }

.tier-l2 { border-color: #2196F3; }
.tier-l2 .tier-level { background: #2196F3; }

.tier-l3 { border-color: #9C27B0; }
.tier-l3 .tier-level { background: #9C27B0; }

/* API Note */
.api-note {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.api-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.api-note a:hover {
    text-decoration: underline;
}

/* Dropdown Styles (for nested menus) */
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .standards-hero {
        padding: 6rem 0 2rem;
    }
    
    .standards-hero h1 {
        font-size: 2rem;
    }
    
    .standards-hero .hero-description {
        font-size: 1rem;
    }
    
    .standard-card {
        padding: 1.5rem;
    }
    
    .standard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .schema-table {
        display: block;
        overflow-x: auto;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
