/**
 * OGA Common Styles
 * Shared CSS variables, base styles, and utility classes
 * Include this first, before other OGA stylesheets
 */

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --oga-primary: #FF8C00;
    --oga-primary-hover: #ff9d1a;
    --oga-primary-dark: #e65c00;

    /* Background Colors */
    --oga-bg-dark: #2d2929;
    --oga-bg-darker: #1e1e1e;
    --oga-bg-card: rgba(255, 255, 255, 0.05);
    --oga-bg-card-hover: rgba(255, 255, 255, 0.1);

    /* Text Colors */
    --oga-text-light: ghostwhite;
    --oga-text-muted: #ccc;
    --oga-text-dark: #333;

    /* Status Colors */
    --oga-success: #4CAF50;
    --oga-error: #F44336;
    --oga-warning: #FF9800;
    --oga-info: #2196F3;

    /* Shadows */
    --oga-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --oga-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --oga-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --oga-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
    --oga-shadow-glow: 0 4px 12px rgba(255, 140, 0, 0.4);

    /* Border Radius */
    --oga-radius-sm: 8px;
    --oga-radius-md: 15px;
    --oga-radius-lg: 20px;
    --oga-radius-xl: 30px;
    --oga-radius-full: 9999px;

    /* Transitions */
    --oga-transition-fast: 0.2s ease;
    --oga-transition-normal: 0.3s ease;
    --oga-transition-slow: 0.5s ease;

    /* Z-Index Scale */
    --oga-z-dropdown: 100;
    --oga-z-modal: 200;
    --oga-z-toast: 300;
}

/* ===== BASE RESETS ===== */
.oga-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== COMMON BUTTON STYLES ===== */
.oga-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--oga-radius-sm);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--oga-transition-normal);
    text-decoration: none;
}

.oga-btn-primary {
    background: var(--oga-primary);
    color: white;
}

.oga-btn-primary:hover {
    background: var(--oga-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--oga-shadow-glow);
}

.oga-btn-secondary {
    background: transparent;
    border: 2px solid var(--oga-primary);
    color: var(--oga-primary);
}

.oga-btn-secondary:hover {
    background: var(--oga-primary);
    color: white;
}

.oga-btn-pill {
    border-radius: var(--oga-radius-full);
    padding: 0.75rem 2rem;
}

.oga-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.oga-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== CARD STYLES ===== */
.oga-card {
    background: var(--oga-bg-card);
    border-radius: var(--oga-radius-md);
    border: 1px solid rgba(255, 140, 0, 0.2);
    overflow: hidden;
    transition: all var(--oga-transition-normal);
}

.oga-card:hover {
    transform: translateY(-8px);
    background: var(--oga-bg-card-hover);
    border-color: var(--oga-primary);
    box-shadow: 0 12px 24px rgba(255, 140, 0, 0.3);
}

.oga-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.oga-card-content {
    padding: 1.5rem;
}

.oga-card-title {
    font-size: 1.5rem;
    color: var(--oga-primary);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* ===== FORM STYLES ===== */
.oga-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--oga-radius-sm);
    color: var(--oga-text-light);
    font-size: 1rem;
    transition: all var(--oga-transition-fast);
}

.oga-input:focus {
    outline: none;
    border-color: var(--oga-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.oga-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.oga-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--oga-text-muted);
    font-size: 0.9rem;
}

/* ===== MESSAGE STYLES ===== */
.oga-message {
    padding: 0.75rem 1rem;
    border-radius: var(--oga-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.oga-message-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ff6b6b;
}

.oga-message-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #69f0ae;
}

/* ===== LOADING STATES ===== */
.oga-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--oga-text-muted);
}

.oga-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 140, 0, 0.3);
    border-top-color: var(--oga-primary);
    border-radius: 50%;
    animation: oga-spin 0.8s linear infinite;
}

@keyframes oga-spin {
    to { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.oga-text-center { text-align: center; }
.oga-text-left { text-align: left; }
.oga-text-right { text-align: right; }

.oga-mt-1 { margin-top: 0.5rem; }
.oga-mt-2 { margin-top: 1rem; }
.oga-mt-3 { margin-top: 1.5rem; }
.oga-mt-4 { margin-top: 2rem; }

.oga-mb-1 { margin-bottom: 0.5rem; }
.oga-mb-2 { margin-bottom: 1rem; }
.oga-mb-3 { margin-bottom: 1.5rem; }
.oga-mb-4 { margin-bottom: 2rem; }

.oga-p-1 { padding: 0.5rem; }
.oga-p-2 { padding: 1rem; }
.oga-p-3 { padding: 1.5rem; }
.oga-p-4 { padding: 2rem; }

.oga-hidden { display: none !important; }
.oga-visible { display: block !important; }

/* ===== ANIMATIONS ===== */
@keyframes oga-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.oga-fade-in {
    animation: oga-fadeIn 0.5s ease-in forwards;
}
