/* assets/css/main.css - CSS Principale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    overflow-x: hidden;
}

/* =================================
   HEADER & NAVIGATION
   ================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-greeting {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* =================================
   BUTTONS
   ================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-hero {
    padding: 15px 35px;
    font-size: 16px;
    border-radius: 30px;
    font-weight: 700;
}

.btn-white {
    background: white;
    color: #667eea;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* =================================
   ALERTS
   ================================= */
.alert {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    max-width: 500px;
    min-width: 300px;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.alert-info {
    background: #e6f3ff;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* =================================
   MODALS
   ================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px 25px 25px;
    overflow-y: auto;
    flex: 1;
}

/* =================================
   FORMS
   ================================= */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 2px;
}

.slug-input {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.slug-input:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.slug-prefix {
    background: #f8f9fa;
    padding: 12px 10px;
    color: #6c757d;
    font-size: 14px;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
}

.slug-input input {
    border: none;
    flex: 1;
    padding: 12px 15px;
    font-size: 14px;
}

.slug-input input:focus {
    outline: none;
    box-shadow: none;
}

.slug-check {
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

/* =================================
   OAUTH BUTTONS
   ================================= */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.oauth-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.oauth-btn.google {
    border-color: #db4437;
}

.oauth-btn.google:hover {
    background: #db4437;
    color: white;
}

.oauth-btn.facebook {
    border-color: #3b5998;
}

.oauth-btn.facebook:hover {
    background: #3b5998;
    color: white;
}

.divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
    color: #718096;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    color: #718096;
    font-size: 14px;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* =================================
   FOOTER
   ================================= */
.footer {
    background: #2d3748;
    color: white;
    padding: 50px 20px 20px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-section h5 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #a0aec0;
    font-weight: 600;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #667eea;
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from {
        transform: translateX(350px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(350px);
        opacity: 0;
    }
}

/* =================================
   RESPONSIVE
   ================================= */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .alert {
        left: 10px;
        right: 10px;
        transform: none;
        margin: 0;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .user-greeting {
        display: none;
    }
}