@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --ws-bg-deep: #14121C;
    --ws-bg: #1A1825;
    --ws-bg-light: #221D32;
    --ws-accent: #7C5CBF;
    --ws-accent-l: #A899D4;
    --ws-t1: #E8E6F0;
    --ws-t2: #C8C4D8;
    --ws-t3: #9590A8;
    --ws-t4: #4A4260;
    --ws-success: #4CAF50;
    --ws-warning: #FF9800;
    --ws-error: #F44336;
}

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

body.ws-hub-public {
    font-family: 'Inter', sans-serif;
    background: #2B2640;
    color: var(--ws-t1);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--ws-t1);
    margin-bottom: 1rem;
}

.ws-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.ws-header {
    background: var(--ws-bg);
    padding: 3rem 0;
    border-bottom: 1px solid var(--ws-t4);
}

.ws-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ws-subtitle {
    font-size: 1.25rem;
    color: var(--ws-t3);
}

/* Plugins Grid */
.ws-plugins-list main {
    padding: 4rem 0;
}

.ws-plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.ws-plugin-card {
    background: #14111B;
    border: 1px solid var(--ws-t4);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.2s, border-color 0.2s;
}

.ws-plugin-card:hover {
    transform: translateY(-4px);
    border-color: var(--ws-accent);
}

.ws-plugin-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 92, 191, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.ws-plugin-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ws-plugin-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.ws-plugin-description {
    color: var(--ws-t2);
    margin-bottom: 1.5rem;
}

.ws-plugin-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ws-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--ws-bg-deep);
    color: var(--ws-t3);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.ws-badge-free {
    background: var(--ws-success);
    color: white;
}

.ws-plugin-pricing {
    margin-bottom: 1.5rem;
}

.ws-price {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ws-accent-l);
    font-family: 'Lora', serif;
}

.ws-price-label {
    display: block;
    font-size: 0.875rem;
    color: var(--ws-t3);
    margin-top: 0.25rem;
}

/* Buttons */
.ws-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    text-align: center;
}

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

.ws-btn-primary:hover {
    background: var(--ws-accent-l);
}

.ws-btn-secondary {
    background: transparent;
    border: 1px solid var(--ws-accent);
    color: var(--ws-accent-l);
}

.ws-btn-secondary:hover {
    background: var(--ws-accent);
    color: white;
}

/* Single Plugin Page */
.ws-breadcrumb {
    margin-bottom: 2rem;
}

.ws-breadcrumb a {
    color: var(--ws-accent-l);
    text-decoration: none;
    font-weight: 500;
}

.ws-breadcrumb a:hover {
    color: var(--ws-accent);
}

.ws-plugin-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.ws-plugin-logo-large {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--ws-bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ws-plugin-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ws-plugin-hero-content {
    flex: 1;
}

.ws-plugin-tagline {
    font-size: 1.25rem;
    color: var(--ws-t2);
    margin-bottom: 1rem;
}

.ws-plugin-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 4rem 0;
}

.ws-plugin-main section {
    margin-bottom: 3rem;
}

.ws-plugin-main h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--ws-accent-l);
}

.ws-content {
    color: var(--ws-t2);
    line-height: 1.8;
}

.ws-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.ws-screenshots-grid img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--ws-t4);
}

/* Sidebar */
.ws-pricing-card,
.ws-demo-card {
    background: var(--ws-bg-light);
    border: 1px solid var(--ws-t4);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.ws-pricing-card h3,
.ws-demo-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--ws-t1);
}

.ws-pricing-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ws-t4);
}

.ws-pricing-option:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ws-price-header {
    margin-bottom: 1rem;
}

.ws-pricing-option .ws-price-label {
    font-size: 0.875rem;
    color: var(--ws-t3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ws-pricing-option .ws-price {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.ws-price-features {
    font-size: 0.875rem;
    color: var(--ws-t3);
    margin-bottom: 1rem;
}

.ws-pricing-premium {
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.1), rgba(124, 92, 191, 0.05));
    border: 1px solid var(--ws-accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ws-pricing-best {
    position: relative;
    background: linear-gradient(135deg, rgba(124, 92, 191, 0.15), rgba(124, 92, 191, 0.08));
    border: 2px solid var(--ws-accent);
}

.ws-pricing-best::before {
    content: "⭐ Meilleur prix";
    position: absolute;
    top: -12px;
    right: 1rem;
    background: var(--ws-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer */
.ws-footer {
    background: var(--ws-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--ws-t4);
    text-align: center;
    color: var(--ws-t3);
    margin-top: 4rem;
}

/* No plugins */
.ws-no-plugins {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ws-t3);
}

/* Responsive */
@media (max-width: 968px) {
    .ws-plugin-layout {
        grid-template-columns: 1fr;
    }
    
    .ws-plugin-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .ws-container {
        padding: 0 1rem;
    }
    
    .ws-plugins-grid {
        grid-template-columns: 1fr;
    }
    
    .ws-header h1 {
        font-size: 2rem;
    }
    
    .ws-plugin-hero {
        flex-direction: column;
    }
}
