/* ============================================
   UI Enhancements - GitHub Primer Light Theme
   Simple 80ms transitions, No gradients
   ============================================ */

/* ===== Enhanced CSS Variables ===== */
:root {
    /* Simple Shadows */
    --shadow-hover: 0 1px 3px rgba(31, 35, 40, 0.12);
    --shadow-lift: 0 4px 12px rgba(31, 35, 40, 0.12);
    --shadow-input-focus: 0 0 0 3px var(--color-accent-muted);
}

/* ============================================
   1. MICRO-INTERACTIONS
   ============================================ */

/* Button Hover - No lift effect */
.gh-btn {
    transition: background-color 80ms;
}

.gh-btn:hover:not(:disabled) {
    /* No transform */
}

.gh-btn:active:not(:disabled) {
    /* No transform */
}

.gh-btn--primary:hover:not(:disabled) {
    /* No box-shadow glow */
}

/* Card Hover - No lift effect */
.gh-card,
.gh-auth-card,
.gh-content-card,
.gh-split-main {
    transition: border-color 80ms;
}

.gh-card:hover,
.gh-auth-card:hover {
    border-color: var(--color-border-muted);
}

/* Input Focus Enhancement */
.gh-form-input,
.gh-form-select,
.gh-form-textarea {
    transition: border-color 80ms, box-shadow 80ms;
}

.gh-form-input:focus,
.gh-form-select:focus,
.gh-form-textarea:focus {
    box-shadow: var(--shadow-input-focus);
    border-color: var(--color-accent-emphasis);
}

/* Social Button Hover - No lift */
.gh-social-btn {
    transition: background-color 80ms;
}

.gh-social-btn:hover {
    background-color: var(--color-canvas-subtle);
}

/* Link Hover - Simple underline */
.gh-link {
    transition: color 80ms;
}

.gh-link:hover {
    text-decoration: underline;
}

/* Checkbox/Radio */
.gh-checkbox-box,
.gh-form-checkbox span::before,
.gh-form-radio span::before {
    transition: background-color 80ms, border-color 80ms;
}

/* ============================================
   2. VISUAL DEPTH & SHADOWS
   ============================================ */

/* Enhanced Card Shadows */
.gh-card--elevated {
    box-shadow: var(--shadow-md);
}

.gh-card--elevated:hover {
    box-shadow: var(--shadow-lg);
}

/* Layered Shadow Effect - Simplified */
.gh-shadow-layered {
    box-shadow: var(--shadow-md);
}

/* Modal Enhanced Shadow */
.gh-modal {
    box-shadow: var(--shadow-lg);
}

/* Auth Card Enhanced */
.gh-auth-shell {
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ============================================
   3. ACCENT LINES & DECORATIONS
   ============================================ */

/* Card Top Accent Line */
.gh-card--accent {
    position: relative;
    border-top: 3px solid var(--color-success-emphasis);
}

.gh-card--accent-blue {
    border-top-color: var(--color-accent-emphasis);
}

/* No gradient accent - use solid color */
.gh-card--accent-gradient {
    position: relative;
    border-top: 3px solid var(--color-success-emphasis);
}

.gh-card--accent-gradient::before {
    display: none;
}

/* Section Accent */
.gh-section--accent {
    position: relative;
    padding-left: var(--space-4);
}

.gh-section--accent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-success-emphasis);
    border-radius: 2px;
}

/* Title Accent Underline */
.gh-title--accent {
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-2);
}

.gh-title--accent::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-success-emphasis);
    border-radius: 2px;
}

/* ============================================
   4. ENHANCED HOVER STATES
   ============================================ */

/* Table Row Hover - No transform */
.gh-board-row,
.re-summary {
    transition: background-color 80ms;
}

.gh-board-row:hover,
.re-summary:hover {
    background-color: var(--color-canvas-subtle);
}

/* List Item Hover - No transform */
.gh-promo-list li {
    transition: color 80ms;
}

/* Badge Hover - No scale */
.gh-badge {
    transition: background-color 80ms;
}

/* Alert Hover - No transform */
.gh-alert {
    transition: background-color 80ms;
}

.gh-alert:hover {
    background-color: var(--color-canvas-subtle);
}

/* ============================================
   5. BACKGROUND COLORS (No Gradients)
   ============================================ */

/* Subtle Background */
.gh-bg-gradient-subtle {
    background-color: var(--color-canvas-subtle);
}

/* Promo Background */
.gh-bg-gradient-promo {
    background-color: var(--color-success-subtle);
}

/* Hero Background */
.gh-bg-gradient-hero {
    background-color: var(--color-canvas-inset);
    color: var(--color-fg-default);
}

/* No gradient text */
.gh-text-gradient {
    color: var(--color-success-emphasis);
}

/* No gradient border */
.gh-border-gradient {
    position: relative;
    border: 1px solid var(--color-border-default);
    background: var(--color-canvas-default);
    border-radius: var(--radius-md);
}

.gh-border-gradient::before {
    display: none;
}

/* Promo Section - No gradient */
.gh-auth-right,
.gh-promo-section {
    background-color: var(--color-success-subtle);
    position: relative;
    overflow: hidden;
}

.gh-auth-right::before,
.gh-promo-section::before {
    display: none;
}

/* ============================================
   6. ICON ENHANCEMENTS
   ============================================ */

/* Icon Hover - No scale */
.gh-icon-hover {
    transition: color 80ms;
}

.gh-icon-hover:hover {
    color: var(--color-fg-default);
}

/* Rotating Icon */
.gh-icon-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pulse Effect for Notifications */
.gh-icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   7. ENHANCED FORM STATES
   ============================================ */

/* Input Label Animation - Simplified */
.gh-form-group--floating {
    position: relative;
}

.gh-form-group--floating .gh-form-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-canvas-default);
    padding: 0 4px;
    font-weight: var(--font-normal);
    color: var(--color-fg-muted);
    transition: top 80ms, font-size 80ms, color 80ms;
    pointer-events: none;
}

.gh-form-group--floating .gh-form-input:focus ~ .gh-form-label,
.gh-form-group--floating .gh-form-input:not(:placeholder-shown) ~ .gh-form-label {
    top: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-accent-fg);
}

/* Input Success/Error States - No animation */
.gh-form-input.is-valid {
    border-color: var(--color-success-emphasis);
    box-shadow: 0 0 0 3px var(--color-success-muted);
}

.gh-form-input.is-invalid {
    border-color: var(--color-danger-emphasis);
    box-shadow: 0 0 0 3px var(--color-danger-muted);
}

/* ============================================
   8. LOADING & SKELETON STATES
   ============================================ */

/* Skeleton Loading */
.gh-skeleton {
    background-color: var(--color-canvas-subtle);
    border-radius: var(--radius-md);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced Spinner */
.gh-spinner {
    border: 2px solid var(--color-border-default);
    border-top-color: var(--color-accent-emphasis);
    animation: spin 0.8s linear infinite;
}

/* ============================================
   9. RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Touch-friendly Hover States (Mobile) */
@media (hover: none) {
    .gh-btn:hover,
    .gh-card:hover,
    .gh-social-btn:hover {
        /* No transform needed */
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   10. DECORATIVE PATTERNS
   ============================================ */

/* Dot Pattern Background - Simplified */
.gh-pattern-dots {
    background-color: var(--color-canvas-subtle);
}

/* Grid Pattern Background - Simplified */
.gh-pattern-grid {
    background-color: var(--color-canvas-subtle);
}

/* Noise Texture Overlay - Removed */
.gh-texture-noise::after {
    display: none;
}
