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

:root {
    --primary: #7c3aed;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #f3f4f6;
    --border: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--light) 0%, #faf5ff 100%);
    color: var(--dark);
    min-height: 100vh;
}

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

/* HEADER */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 20px;
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left { display: flex; align-items: center; gap: 30px; }
.header-logo { font-size: 2em; font-weight: 900; }

.header-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
}

.stat-badge strong { font-size: 1.3em; margin-right: 5px; }

.header-right { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-header {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* CONTENT */
.content { display: none; }
.content.active { display: block; animation: fadeIn 0.3s ease-out; }

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

/* HERO */
.hero {
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.hero h1 { 
    font-size: 2.5em; 
    margin-bottom: 10px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.hero p { 
    color: #666; 
    font-size: 1.05em; 
    margin-bottom: 20px; 
}

/* SECTIONS */
h2 { 
    font-size: 1.6em; 
    margin: 35px 0 20px; 
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

h3 { 
    font-size: 1.2em; 
    margin: 20px 0 15px; 
    color: var(--dark);
}

/* CARDS */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.card:hover { 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
    transform: translateY(-2px);
    cursor: pointer;
}

.card-title { 
    font-weight: bold; 
    font-size: 1.1em; 
    margin-bottom: 10px; 
    color: var(--primary); 
}

.card-subtitle { 
    font-size: 0.9em; 
    color: #666; 
    margin: 5px 0; 
}

.card-comment {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--primary);
}

.card-comment-text {
    font-style: italic;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.card-comment-meta {
    font-size: 0.85em;
    color: #999;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

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

/* TABS */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* FORMS */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea { 
    resize: vertical; 
    min-height: 80px; 
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* BUTTONS */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #6d28d9; }

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

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; }

.btn-small { padding: 6px 12px; font-size: 0.8em; }

/* RATINGS */
.rating-stars {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.star {
    font-size: 1.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star:hover { transform: scale(1.2); }

.star.active { color: var(--warning); }

.rating-display {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--warning);
}

/* MESSAGES */
.message {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.message.success { background: #d1fae5; color: #065f46; border: 2px solid var(--success); }
.message.error { background: #fee2e2; color: #7f1d1d; border: 2px solid var(--danger); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    float: right;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* STATS BOX */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--primary);
}

.stat-item-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.stat-item-label {
    font-size: 0.9em;
    color: #666;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero { padding: 25px; }
    .hero h1 { font-size: 1.8em; }
    .form-row { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .header { flex-direction: column; text-align: center; }
    .tabs { justify-content: flex-start; overflow-x: auto; }
    .header-left { flex-direction: column; gap: 15px; }
}

