

:root {
    --comm-primary: #0a2e5c;
    --comm-accent: #00b4ff;
    --comm-gold: #c5a059;
    --comm-bg: #f8fafc;
    --comm-card: #ffffff;
    --comm-border: rgba(10, 46, 92, 0.08);
}

body {
    background: var(--comm-bg);
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--comm-primary);
}

.comm-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--comm-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    text-decoration: none;
    color: var(--comm-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 0.7; }

.logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--comm-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.badge-comm {
    background: var(--comm-accent);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-pill:hover {
    background: #e2e8f0;
}

.user-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-pill span {
    font-size: 14px;
    font-weight: 600;
}

.auth-wall {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid var(--comm-border);
}

.auth-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.btn-google {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: white;
    color: #444;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

.btn-google:hover {
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comm-main {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--comm-border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.star-rating {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.star {
    font-size: 32px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active {
    color: #f59e0b;
}

.review-textarea {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 15px;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.review-textarea:focus {
    outline: none;
    border-color: var(--comm-accent);
}

.btn-post {
    background: var(--comm-primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-post:active {
    transform: scale(0.98);
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.feed-filter {
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--comm-border);
}

.review-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--comm-border);
    animation: slideUp 0.4s ease forwards;
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rev-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rev-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.rev-user-name {
    font-weight: 700;
    font-size: 15px;
}

.rev-user-role {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.role-teacher { background: #dcfce7; color: #166534; }
.role-student { background: #f1f5f9; color: #475569; }

.rev-stars {
    color: #f59e0b;
    font-size: 14px;
}

.rev-text {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
}

.rev-date {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 10px;
}

.profile-menu {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border: 1px solid var(--comm-border);
    z-index: 1000;
    padding: 20px;
    animation: scaleIn 0.3s ease;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-header h3 { margin: 0; }
.menu-header button { background: none; border: none; font-size: 18px; cursor: pointer; }

.edit-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.edit-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f1f5f9;
}

.edit-name label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.verify-status {
    margin: 15px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.status-verified { color: #059669; }
.status-unverified { color: #dc2626; }

.btn-save {
    width: 100%;
    padding: 12px;
    background: var(--comm-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .header-inner h1 { font-size: 16px; }
    .auth-card { padding: 25px; }
    .star { font-size: 24px; }
}

.rev-delete-btn {
    background: rgba(255, 75, 75, 0.1);
    border: none;
    color: #ff4b4b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.rev-delete-btn:hover {
    background: #ff4b4b;
    color: white;
    transform: scale(1.1);
}
