@import "base.css";

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

body {
    background-color: var(--adw-bg);
}

/* Layout */
.container {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
}

.card {
    background: var(--adw-card);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.inline-code {
    background: var(--code-bg);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: var(--monospace);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 64px;
    width: 64px;
    object-fit: contain;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--adw-fg, #ffffff);
    line-height: 1;
}

.provider-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.provider-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* Code Containers */
.cmd-container {
    position: relative;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--monospace);
}

/* Copy Button */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #55505c;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.copy-btn:hover {
    background: #241f31;
}

.copy-btn.copied {
    background: #26a269;
}

.cmd-container:hover .copy-btn {
    opacity: 1;
}

a {
    color: #3584df;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #3584df;
}

a[href^="http"]:not([href*="gradia.alexandervanhee.be"]):not(.no-external)::after {
    content: "";
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    background-image: url('../icons/extlink.svg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 0.2em;
    vertical-align: middle;
}

.setup-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setup-step {
    display: flex;
    align-items: flex-start;
}

.step-number {
    background: #55505c;
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
}


/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .copy-btn {
        transition: none;
    }
}

.copy-btn:focus {
    outline: 2px solid var(--adw-blue);
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid var(--adw-blue);
    outline-offset: 2px;
}
