/* Custom styles for AWS + Coveo Workshop */

/* Coveo logo styling - make it bigger */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    width: auto !important;
    height: 64px !important;
    max-height: 64px !important;
}

.md-header__button.md-logo {
    padding: 0.3rem !important;
}

/* Adjust header height to accommodate larger logo */
.md-header {
    min-height: 4rem !important;
}

/* Hero section styling */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Lab cards */
.lab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.lab-card {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Checklist styling */
.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.checklist li:before {
    content: "☐";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Timeline styling */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--md-primary-fg-color);
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: -1.7rem;
    top: 12px;
    width: 2px;
    height: calc(100% - 12px);
    background: var(--md-default-fg-color--lightest);
}

.timeline-item:last-child:after {
    display: none;
}

/* Code block enhancements */
.highlight {
    margin: 1rem 0;
}

/* Table styling */
table {
    width: 100%;
    margin: 1rem 0;
}

/* Admonition custom colors */
.admonition.tip {
    border-left-color: #00c853;
}

.admonition.warning {
    border-left-color: #ff9100;
}

.admonition.danger {
    border-left-color: #ff1744;
}

/* Screenshot styling */
.screenshot {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 4px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Button styling */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--md-primary-fg-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.button:hover {
    background: var(--md-accent-fg-color);
    color: white;
}

/* Grid layout for resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.resource-item {
    padding: 1rem;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lab-cards {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

/* Hide "Made with Material for MkDocs" footer */
.md-footer-meta__inner {
    display: none;
}

/* Backend badge styling for labs */
.backend-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    margin: 1rem 0;
    color: white;
}

.backend-badge.coveo {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: 2px solid #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.backend-badge.bedrock {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: 2px solid #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.backend-badge.agentcore {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border: 2px solid #9c27b0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}
