/* Reset et variables - Foxy's Wave DA */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #E31E24;
    --accent-orange: #FF8C00;
    --accent-yellow: #FFB84D;
    --dark-red: #C41E3A;
    --dark-bg: #1a1a2e;
    --light-bg: #FFF5F0;
    --text-dark: #2d3748;
    --text-light: #ffffff;
    --border-color: #FFE0D6;
    --success-color: #10b981;
    --error-color: #E31E24;
    --warning-color: #FF8C00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #FFB84D 0%, #FF8C00 50%, #FF6B35 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(255, 107, 53, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.nav-link .badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: white;
    border-radius: 25px;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    border: 3px solid var(--primary-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
    border-color: var(--primary-color);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
}

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

.artwork-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.artwork-card:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
    border-color: var(--primary-color);
}

.artwork-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.artwork-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.artwork-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(227, 30, 36, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-gradient:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--secondary-color);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 3px solid var(--border-color);
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.75rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 5px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 5px solid var(--secondary-color);
}

.alert-info {
    background: #fff5f0;
    color: #c2410c;
    border-left: 5px solid var(--accent-orange);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.98);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 1.4rem;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.social-links a:hover {
    transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    color: #666;
    font-weight: 600;
}

/* Chat */
.chat-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-messages {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    min-height: 450px;
    max-height: 650px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.message {
    display: flex;
    margin-bottom: 1rem;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
}

.message.received .message-bubble {
    background: #f3f4f6;
    border-bottom-left-radius: 5px;
    border: 2px solid var(--border-color);
}

.message.sent .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-right-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.chat-input-form {
    display: flex;
    gap: 1rem;
}

.chat-input-form .form-control {
    flex: 1;
}

/* Admin Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
}

.stat-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-dark);
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Foxy's Wave signature style */
.foxy-signature {
    position: relative;
}

.foxy-signature::after {
    content: "FOXY'S WAVE";
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.2;
    transform: rotate(-5deg);
}

/* Logo FOXY'S wave - Style spécial */
.logo {
    font-size: 2rem !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 0.3rem !important;
}

.logo-foxy {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #E31E24 0%, #FF6B35 50%, #FFB84D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.logo-wave {
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 1.8rem;
    font-weight: normal;
    font-style: italic;
    color: #FF8C00;
    background: linear-gradient(135deg, #FF8C00, #FFB84D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(2px);
}

/* Animation au survol du logo */
.logo:hover .logo-foxy {
    animation: pulse 0.5s ease;
}

.logo:hover .logo-wave {
    animation: wave 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wave {
    0%, 100% { transform: translateY(2px) rotate(0deg); }
    25% { transform: translateY(0px) rotate(-2deg); }
    75% { transform: translateY(4px) rotate(2deg); }
}

/* Footer également */
.footer-bottom {
    font-size: 0.9rem;
}

/* Fix pour les boutons dans la page admin artworks */
.artwork-card .artwork-info > div[style*="display: flex"] {
    display: flex !important;
    gap: 0.5rem !important;
    width: 100% !important;
}

.artwork-card .artwork-info > div[style*="display: flex"] .btn,
.artwork-card .artwork-info > div[style*="display: flex"] form {
    flex: 1 !important;
    min-width: 0 !important;
}

.artwork-card .artwork-info > div[style*="display: flex"] button,
.artwork-card .artwork-info > div[style*="display: flex"] a.btn {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Assurer que les formulaires inline prennent toute la largeur */
.artwork-card .artwork-info form {
    margin: 0 !important;
    display: block !important;
}

.artwork-card .artwork-info form button {
    width: 100% !important;
}
