/* Modern AWS Study Guide - Inspired by Project Sparkle */
:root {
    --primary: #ff9900;
    --primary-dark: #e88900;
    --secondary: #10b981;
    --accent: #3b82f6;
    --background: #0a0e27;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #ff9900, #ffb84d);
    --gradient-bg: linear-gradient(135deg, #0a0e27 0%, #1a1d3a 50%, #0a0e27 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 153, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Modern Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Typography */
.font-montserrat { 
    font-family: 'Inter', sans-serif; 
    font-weight: 600;
}

.aws-orange { color: var(--primary); }
.bg-aws-orange { background-color: var(--primary); }

/* Modern Cards */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    border-radius: 1rem;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 153, 0, 0.2);
    border-color: rgba(255, 153, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.card-hover:hover::before {
    opacity: 1;
}

.card-fixed-height {
    height: clamp(160px, 20vh, 200px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hero Section */
.hero-icon {
    background: var(--gradient-primary);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.4);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(255, 153, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 15px 40px rgba(255, 153, 0, 0.6);
        transform: scale(1.05);
    }
}

/* Service Icons */
.service-icon {
    background: linear-gradient(135deg, var(--icon-color) 0%, var(--icon-color-light) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
}

/* Section Dividers */
.section-divider {
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    height: 2px;
    margin: 3rem 0;
    opacity: 0.6;
}

/* Modern Content Layout */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section {
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 153, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 153, 0, 0.3);
    color: var(--text-primary);
}

/* Grid Layouts */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

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

/* Topic Lists */
.topic-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.topic-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
    color: inherit;
}

.topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.topic-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Code Blocks */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Lists */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-list li:last-child {
    border-bottom: none;
}

.modern-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-section {
        padding: 6rem 1rem 3rem;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-fixed-height {
        height: auto;
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
}

/* Service-specific colors */
.service-iam { --icon-color: #8B5CF6; --icon-color-light: #A78BFA; }
.service-ec2 { --icon-color: #10B981; --icon-color-light: #34D399; }
.service-rds { --icon-color: #F59E0B; --icon-color-light: #FBBF24; }
.service-s3 { --icon-color: #EF4444; --icon-color-light: #F87171; }
.service-ebs { --icon-color: #8B5A2B; --icon-color-light: #A0522D; }
.service-ha { --icon-color: #06B6D4; --icon-color-light: #22D3EE; }
.service-route53 { --icon-color: #EC4899; --icon-color-light: #F472B6; }
.service-vpc { --icon-color: #06B6D4; --icon-color-light: #22D3EE; }
.service-cloudfront { --icon-color: #F97316; --icon-color-light: #FB923C; }
.service-secrets { --icon-color: #DC2626; --icon-color-light: #EF4444; }
.service-systems { --icon-color: #059669; --icon-color-light: #10B981; }
.service-cloudwatch { --icon-color: #FF6B35; --icon-color-light: #FF8A65; }

/* ===== MISSING STYLES FOR SECRETSMANAGER PAGES ===== */

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 153, 0, 0.2);
    border-color: rgba(255, 153, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.service-card-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-card-footer {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
}

.service-card-footer i {
    margin-left: 0.5rem;
}

/* Border Colors */
.border-security { border-left: 4px solid #DC2626; }
.border-performance { border-left: 4px solid #10B981; }
.border-guide { border-left: 4px solid #3B82F6; }
.border-architecture { border-left: 4px solid #8B5CF6; }
.border-limitations { border-left: 4px solid #EF4444; }
.border-exam { border-left: 4px solid #F59E0B; }

/* Service Icons with Colors */
.service-security { 
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.service-performance { 
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.service-guide { 
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.service-architecture { 
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.service-limitations { 
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.service-exam { 
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 153, 0, 0.3);
    transform: translateY(-2px);
}

.stat-icon {
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer Sections */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Content Grid for Topic Pages */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin: 2rem 0;
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

/* Table of Contents */
.toc-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.toc-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: var(--primary);
}

/* Related Topics */
.related-topics {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.related-topics h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.related-topics li {
    margin-bottom: 0.5rem;
}

.related-topics a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.related-topics a:hover {
    color: var(--primary);
}

/* Content Navigation */
.content-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    gap: 1rem;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 153, 0, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-prev {
    margin-right: auto;
}

.nav-next {
    margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        position: static;
        order: -1;
    }
    
    .toc-card, .related-topics {
        display: none;
    }
}

@media (max-width: 768px) {
    .content-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}