/**
 * Common Styles - Xeora
 * 
 * @package Xeora
 * @subpackage CSS/Common
 * @since 3.8.0
 */

/* Header and Navigation */
.xeora-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.xeora-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xeora-logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.xeora-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.xeora-nav a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.xeora-nav a:hover {
    opacity: 0.8;
}

/* Footer */
.xeora-footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.xeora-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.xeora-footer p {
    margin: 0;
    opacity: 0.9;
}

/* Alert and Notification Styles */
.xeora-alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.xeora-alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.xeora-alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.xeora-alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.xeora-alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Loading Spinner */
.xeora-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.xeora-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.xeora-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.xeora-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
}

.xeora-modal-close:hover {
    color: #000;
}

/* Utility Classes */
.xeora-hidden {
    display: none !important;
}

.xeora-visible {
    display: block !important;
}

.xeora-text-muted {
    color: #6c757d;
}

.xeora-text-primary {
    color: #007bff;
}

.xeora-text-danger {
    color: #dc3545;
}

.xeora-text-success {
    color: #28a745;
}

.xeora-border {
    border: 1px solid #dee2e6;
}

.xeora-rounded {
    border-radius: 6px;
}

.xeora-shadow {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Grid Layout */
.xeora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.xeora-grid-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .xeora-header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .xeora-nav {
        gap: 1rem;
    }
    
    .xeora-grid {
        grid-template-columns: 1fr;
    }
}