/* Redfish Cheatsheet - Dedicated Styles */

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

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #4c51bf 0%, #5a3e8f 100%);
    min-height: 100vh;
    padding: 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
}

/* Typography */
h1 {
    color: #4c51bf; /* Changed from #667eea for better contrast (4.5:1) */
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: #4a5568; /* Changed from #666 for better contrast (7:1) */
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Navigation */
nav {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

nav a {
    color: #4c51bf; /* Changed from #667eea for better contrast */
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
    color: #5a3e8f;
}

/* Sections */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: #5a3e8f; /* Changed from #764ba2 for better contrast (4.6:1) */
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Commands Grid */
.commands {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Command Cards */
.command-card {
    background: #f7fafc;
    border-left: 4px solid #4c51bf;
    padding: 1.5rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.command-card:hover {
    box-shadow: 0 4px 12px rgba(76, 81, 191, 0.15);
}

.command-card h3 {
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.command-card p {
    color: #4a5568;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.command-card code {
    background: #1a202c; /* Dark background for code */
    color: #48bb78; /* Green text with high contrast (8.6:1) */
    padding: 0.5rem;
    border-radius: 4px;
    display: block;
    margin-top: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* Tags */
.tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    background: #e6e9ff; /* Lighter background for better contrast */
    color: #3730a3; /* Darker text for better contrast (7.2:1) */
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    color: #4a5568; /* Changed from #666 for better contrast */
}

footer a {
    color: #4c51bf;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #5a3e8f;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .commands {
        grid-template-columns: 1fr;
    }

    nav a {
        display: block;
        margin: 0.5rem 0;
    }
}
