/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    line-height: 1;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* Primary Button */
.btn--primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.3);
}

.btn--primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(var(--accent-primary-rgb), 0.4);
}

/* Outline Button */
.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-default);
}

.btn--outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Ghost Button */
.btn--ghost {
    background: transparent;
    color: var(--accent-primary);
    padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover {
    background: var(--surface-glass);
}

/* Full Width */
.btn--full {
    width: 100%;
}

/* ========================================
   Form Elements
   ======================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    background: var(--surface-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    font-size: var(--fs-xs);
    color: var(--color-error);
    margin-top: var(--space-xs);
}

.form-message {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.form-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

/* ========================================
   Cards
   ======================================== */

/* Highlight Card */
.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.highlight-card:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    transform: translateY(-2px);
}

.highlight-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.highlight-card__icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.highlight-card__text {
    font-size: var(--fs-base);
    color: var(--text-primary);
    line-height: var(--lh-normal);
}

/* Tech Tags */
.tech-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(var(--accent-primary-rgb), 0.2);
}

/* ========================================
   Spinner
   ======================================== */

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Wide Project Card
   ======================================== */

.projects__stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}


.project-card-wide {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.project-card-wide:hover {
    border-color: rgba(var(--accent-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-card-wide__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
}

.project-card-wide__meta {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: var(--fs-sm);
    color: var(--accent-primary);
    font-weight: var(--fw-medium);
}

.project-card-wide__separator {
    color: var(--text-tertiary);
}

.project-card-wide__role {
    color: var(--text-secondary);
}

.project-card-wide__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.project-card-wide__title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin: 0;
    margin-right: auto;
}

.project-card-wide__badges {
    display: flex;
    gap: var(--space-xs);
}

.project-card__category-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    background: var(--surface-glass);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    text-transform: capitalize;
}

.project-card-wide__description {
    font-size: var(--fs-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: var(--lh-normal);
}

.project-card-wide__highlights {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-lg);
    color: var(--text-secondary);
}

.project-card-wide__highlights li {
    margin-bottom: var(--space-xs);
    position: relative;
}

.project-card-wide__highlights li::marker {
    color: var(--accent-primary);
}

.project-card-wide__tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.project-card-wide__image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    order: 2;
    background: var(--bg-secondary);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-wide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card-wide:hover .project-card-wide__image img {
    transform: scale(1.05);
}

.project-card-wide__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

.project-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.project-card__placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.2;
}