/*
Theme Name: K1BOSS
Description: Réseau Social Panafricain avec IA Conversationnelle
Version: 1.0
Author: K1BOSS Team
Text Domain: k1boss
*/

:root {
    --primary: #1a1a1a;
    --secondary: #FF6B00;
    --accent: #00A859;
    --gold: #FFD700;
    --dark: #0a0a0a;
    --light: #ffffff;
    --gray: #f5f5f5;
    --gradient: linear-gradient(135deg, var(--secondary), var(--accent));
}

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

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

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

/* Header */
.k1boss-header {
    background: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.k1boss-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
}

.k1boss-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.k1boss-nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
}

.k1boss-nav a:hover,
.k1boss-nav a.active {
    background: var(--gradient);
    color: white;
}

.k1boss-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Hero Section */
.k1boss-hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
}

.k1boss-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--gold), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* Boutons */
.k1boss-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.k1boss-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

/* Chatbot IA */
.k1boss-chatbot {
    background: var(--primary);
    padding: 60px 0;
}

.chatbot-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.chat-header {
    background: var(--gradient);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header h3 {
    color: white;
    font-size: 1.3rem;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
    animation: fadeIn 0.3s ease-in;
}

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

.user-message {
    align-self: flex-end;
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 5px;
}

.chat-input-area {
    display: flex;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.chat-input::placeholder {
    color: #aaa;
}

/* Réseau Social */
.k1boss-feed {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}

.sidebar {
    background: var(--primary);
    padding: 25px;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.friends-list {
    list-style: none;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
    cursor: pointer;
}

.friend-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Post Creation */
.create-post {
    background: var(--primary);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.post-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    resize: vertical;
    min-height: 80px;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: rgba(255, 107, 0, 0.1);
}

/* Posts Feed */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--primary);
    border-radius: 15px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-content {
    padding: 0 20px 20px;
}

.post-image {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

.post-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Studio IA */
.k1boss-studio {
    padding: 60px 0;
    background: var(--primary);
}

.studio-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.studio-tab {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.studio-tab.active {
    background: var(--gradient);
}

.studio-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.prompt-area {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    resize: vertical;
    min-height: 120px;
}

.generation-result {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Profil Utilisateur */
.k1boss-profil {
    padding: 60px 0;
}

.profil-header {
    background: var(--primary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.profil-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 20px;
}

.profil-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--primary);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .k1boss-feed {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .k1boss-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .k1boss-hero h1 {
        font-size: 2.5rem;
    }
    
    .profil-stats {
        grid-template-columns: 1fr;
    }
}