/* Custom Styles for AI Prompt Engineering GitHub Pages Site */
/* These styles override and enhance the minimal theme */

:root {
    --primary-color: #4A90E2;
    --secondary-color: #7B68EE;
    --accent-color: #50C878;
    --text-color: #2c3e50;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e1e4e8;
    --code-bg: #f6f8fa;
    --link-color: #0366d6;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

/* Global Styles - Override minimal theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    line-height: 1.7 !important;
    color: var(--text-color) !important;
    background-color: var(--bg-color) !important;
}

/* Hide theme's default header/banner to avoid duplication with hero section */
/* Target the minimal theme's default banner - appears before wrapper */
header.banner,
.banner,
[role="banner"],
.wrapper > header,
body > header:first-of-type,
header:first-of-type:not(.hero),
section[role="banner"],
body > * > header:first-child {
    display: none !important;
    visibility: hidden !important;
}

/* Hide banner that contains GitHub link (minimal theme default) */
header a[href*="github"]:first-of-type,
header:has(a[href*="View the Project"]) {
    display: none !important;
}

/* Re-show hero section explicitly */
div.hero,
.hero {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
}

/* Override minimal theme wrapper */
.wrapper {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header override */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    padding: 3rem 1rem !important;
    margin: -2rem -1rem 3rem -1rem !important;
    text-align: center !important;
    box-shadow: var(--shadow-lg) !important;
}

.site-header h1, .site-header h2 {
    color: white !important;
    border: none !important;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.site-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.site-header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Navigation */
.site-nav {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.site-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none !important;
    color: white !important;
}

/* Code Blocks */
code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
}

pre {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

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

th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #6a737d;
    font-style: italic;
}

/* Lists */
ul, ol {
    padding-left: 2rem;
}

li {
    margin: 0.5rem 0;
}

/* Centered Content */
.center {
    text-align: center;
}

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

/* Features Section */
.features {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 2rem 0 !important;
}

.feature-card {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 1.5rem !important;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.feature-card h3 {
    color: var(--primary-color) !important;
    margin-top: 0 !important;
    border: none !important;
    font-size: 1.25rem !important;
}

.feature-card ul {
    margin: 1rem 0 !important;
    flex-grow: 1;
}

.feature-card li {
    margin: 0.75rem 0 !important;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
    color: #6a737d;
}

/* Responsive */
@media (max-width: 768px) {
    .wrapper {
        padding: 1rem 0.5rem;
    }
    
    .site-header h1 {
        font-size: 2rem;
    }
    
    .site-header p {
        font-size: 1rem;
    }
    
    .site-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section - Custom hero that replaces theme banner */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    padding: 4rem 1rem !important;
    text-align: center;
    margin: -2rem -1rem 3rem -1rem !important;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white !important;
    border: none !important;
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0 !important;
    font-weight: 700 !important;
}

.hero p {
    font-size: 1.3rem !important;
    opacity: 0.95;
    max-width: 800px;
    margin: 1rem auto 2rem auto !important;
    color: white !important;
}

.hero .btn {
    display: inline-block !important;
    margin: 0.5rem !important;
}

/* Badge/Pill */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
    color: #1565c0;
}

.alert-success {
    background-color: #e8f5e9;
    border-color: var(--accent-color);
    color: #2e7d32;
}

.alert-warning {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.p-2 {
    padding: 2rem;
}
