/* 
   REST SAAS - GLOBAL CSS 
   Modern, Premium, Glassmorphism Aesthetics
*/

:root {
    /* Base Colors - Cloud Platform Aesthetic (Light Mode) */
    --rs-primary: #0070f3;
    --rs-primary-hover: #0060df;
    --rs-primary-light: rgba(0, 112, 243, 0.1);
    
    --rs-bg: #f9fafb;
    --rs-bg-alt: #ffffff;
    
    --rs-text: #111827;
    --rs-text-muted: #6b7280;
    
    --rs-border: #e5e7eb;
    
    --rs-success: #10b981;
    --rs-danger: #ef4444;
    --rs-warning: #f59e0b;
    --rs-info: #3b82f6;

    /* Glassmorphism / Panels */
    --rs-glass-bg: rgba(255, 255, 255, 0.7);
    --rs-glass-border: rgba(229, 231, 235, 0.5);
    --rs-glass-blur: blur(12px);

    /* Shadows - Layered & Modern */
    --rs-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --rs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --rs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --rs-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --rs-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --rs-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Corners & Motion */
    --rs-radius: 12px;
    --rs-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset for Plugin Elements */
.rs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rs-section {
    padding: 80px 0;
}

body.rs-store-page,
body.rs-blank-template {
    background-color: var(--rs-bg);
    color: var(--rs-text);
    font-family: var(--rs-font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rs-font-heading);
    font-weight: 700;
    color: var(--rs-text);
    margin-top: 0;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.rs-fade { animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* Buttons */
.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rs-radius);
    font-weight: 600;
    font-family: var(--rs-font-body);
    cursor: pointer;
    transition: var(--rs-transition);
    border: none;
    text-decoration: none;
    line-height: 1;
}
.rs-btn-primary {
    background: var(--rs-primary);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(186,117,23,0.39);
}
.rs-btn-primary:hover {
    background: var(--rs-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186,117,23,0.4);
}
.rs-btn-ghost {
    background: transparent;
    border: 2px solid var(--rs-text);
    color: var(--rs-text) !important;
}
.rs-btn-ghost:hover {
    background: var(--rs-text);
    color: white !important;
}
.rs-btn-full { width: 100%; }

/* Forms */
.rs-form-group { margin-bottom: 20px; text-align: left; }
.rs-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--rs-text);
    font-size: 0.95rem;
}
.rs-form-group input, 
.rs-form-group select, 
.rs-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--rs-border);
    border-radius: var(--rs-radius);
    background: var(--rs-bg-alt);
    font-family: var(--rs-font-body);
    font-size: 1rem;
    transition: var(--rs-transition);
    color: var(--rs-text);
    box-sizing: border-box;
}
.rs-form-group input:focus,
.rs-form-group select:focus,
.rs-form-group textarea:focus {
    border-color: var(--rs-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--rs-primary-light);
}

.rs-input-prefix {
    display: flex;
    align-items: center;
    border: 2px solid var(--rs-border);
    border-radius: var(--rs-radius);
    overflow: hidden;
    background: var(--rs-bg);
}
.rs-input-prefix span {
    padding: 12px 16px;
    color: var(--rs-text-muted);
    font-weight: 500;
    border-right: 1px solid var(--rs-border);
}
.rs-input-prefix input {
    border: none;
    border-radius: 0;
    margin: 0;
}
.rs-input-prefix input:focus {
    box-shadow: none;
}
.rs-input-prefix:focus-within {
    border-color: var(--rs-primary);
    box-shadow: 0 0 0 3px var(--rs-primary-light);
}

/* Modals */
.rs-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.rs-modal {
    background: var(--rs-bg-alt);
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: var(--rs-shadow-lg);
    animation: fadeIn 0.3s ease;
}
.rs-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--rs-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rs-modal-header h3 { margin: 0; }
.rs-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--rs-text-muted);
    cursor: pointer;
}
.rs-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}
