/* Canva-inspired Modern Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --light-purple: #f3f4f6;
    --soft-gray: #f8fafc;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-light: #e5e7eb;
    --success-green: #10b981;
    --error-red: #ef4444;
    --warning-yellow: #f59e0b;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --ns-black: #1a1a1a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--soft-gray);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Main Container */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

/* Header Styles */
.game-header {
    background: var(--white);
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hide any theme toggle buttons */
.theme-toggle,
.dark-mode-toggle,
button[data-theme],
button[aria-label*="theme"],
button[aria-label*="dark"],
button[aria-label*="light"],
*[class*="theme-toggle"],
*[class*="dark-mode"] {
    display: none !important;
}

.game-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--ns-black);
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ns-flag {
    background: var(--ns-black);
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.game-subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 6px 0 0 0;
    font-weight: 400;
}

/* Main Content */
.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px;
}

/* Main Screen */
.game-screen {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
}

.screen-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Section Titles */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Form Styles */
.growth-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--error-red);
}

.form-label i {
    margin-right: 8px;
    color: var(--primary-purple);
    opacity: 0.8;
}

/* Header Stats */
.header-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.weekly-countdown,
.growth-stats {
    background: var(--soft-gray);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.weekly-countdown i,
.growth-stats i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.growth-stats {
    color: var(--primary-purple);
}

/* Weekly Report Styles */
.report-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.report-header {
    margin-bottom: 32px;
}

.report-title-section {
    text-align: center;
    margin-top: 24px;
}

.report-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--ns-black);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.report-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.report-section {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ns-black);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-card {
    background: var(--soft-gray);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-purple);
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.insights-grid {
    display: grid;
    gap: 16px;
}

.insight-card, .pattern-item, .highlight-item, .recommendation-item {
    background: var(--soft-gray);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.insight-icon, .pattern-icon, .highlight-icon, .rec-icon {
    color: var(--primary-purple);
    margin-top: 2px;
    flex-shrink: 0;
}

.insight-text, .pattern-text, .highlight-text, .recommendation-text {
    margin: 0;
    line-height: 1.5;
    color: var(--text-dark);
}

.patterns-list, .highlights-list, .recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.action-card {
    text-align: center;
}

.action-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ns-black);
    margin: 0 0 8px 0;
}

.action-text {
    color: var(--text-gray);
    margin: 0 0 20px 0;
}

.action-btn {
    margin-top: 8px;
}

.game-input,
.game-textarea {
    width: 100%;
    padding: 16px 16px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    resize: vertical;
}

.game-input:focus,
.game-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: var(--white);
}

.game-input::placeholder,
.game-textarea::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-text {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 400;
}

/* Buttons */
.game-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.game-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: var(--shadow-medium);
}

.btn-primary {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    border-color: var(--border-light);
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    background: var(--light-purple);
    color: var(--text-dark);
    border-color: var(--primary-purple);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 24px;
    padding: 0 32px;
}

.game-alert {
    border: 1px solid;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-green);
    color: #065f46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error-red);
    color: #991b1b;
}

/* Motivation Section */
.motivation-section {
    margin-top: 48px;
    text-align: center;
}

.motivation-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.motivation-icon {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 16px;
    opacity: 0.8;
}

.motivation-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-style: italic;
    margin: 0;
    font-weight: 400;
    line-height: 1.7;
}

/* Admin Styles */
.admin-screen {
    background: var(--white);
}

.admin-header {
    margin-bottom: 32px;
    text-align: center;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-item strong {
    color: var(--primary-purple);
    font-weight: 600;
}

/* Table Styles */
.game-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.game-table th {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    padding: 16px 12px;
    border: none;
    font-size: 0.9rem;
}

.game-table td {
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.submission-row:hover td {
    background: rgba(139, 92, 246, 0.05);
}

.date-cell {
    width: 140px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.name-cell {
    width: 120px;
}

.name-badge {
    background: var(--primary-purple);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.content-cell {
    font-size: 0.9rem;
    line-height: 1.5;
}

.content-preview {
    max-width: 200px;
    word-wrap: break-word;
    cursor: pointer;
    color: var(--text-gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 32px;
}

.empty-icon {
    font-size: 4rem;
    color: var(--primary-purple);
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state h3 {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Error Screens */
.error-screen {
    text-align: center;
    padding: 80px 32px;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: var(--error-red);
    margin-bottom: 24px;
}

.error-content h2 {
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Footer */
.game-footer {
    text-align: center;
    padding: 24px 32px;
    margin-top: 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.85rem;
    background: var(--white);
}

.footer-link {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 32px;
}

.intro-text {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Feed Styles */
.feed-header-simple {
    text-align: center;
    margin-bottom: 32px;
}

.feed-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-gray);
    margin: 0 0 16px 0;
    text-align: center;
}

.feed-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.feed-submit-section, .feed-report-section {
    display: flex;
    justify-content: center;
}

.submit-highlight-btn, .report-btn {
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    border-radius: 8px !important;
}

.report-btn {
    background: var(--soft-gray) !important;
    border-color: var(--border-light) !important;
    color: var(--text-dark) !important;
}

.report-btn:hover {
    background: var(--border-light) !important;
    border-color: var(--primary-purple) !important;
    color: var(--text-dark) !important;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    gap: 24px;
    flex-wrap: wrap;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header-action {
    flex-shrink: 0;
}

.feed-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px 32px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.feed-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.growth-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.growth-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.username {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 2px 0 0 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.growth-item {
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid;
}

.book-item {
    background: rgba(59, 130, 246, 0.05);
    border-left-color: var(--primary-blue);
}

.achievement-item {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: var(--warning-yellow);
}

.highlight-item {
    background: rgba(139, 92, 246, 0.05);
    border-left-color: var(--primary-purple);
}

.event-item {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: var(--success-green);
}

.item-header {
    margin-bottom: 8px;
}

.item-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
}

.book-tag {
    background: var(--primary-blue);
}

.achievement-tag {
    background: var(--warning-yellow);
}

.highlight-tag {
    background: var(--primary-purple);
}

.event-tag {
    background: var(--success-green);
}

.item-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

.empty-feed {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.empty-content {
    text-align: center;
    max-width: 400px;
}

.back-nav {
    margin-bottom: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.form-info {
    margin-top: 24px;
    text-align: center;
}

.info-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-style: italic;
}

.info-text i {
    color: var(--primary-purple);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-content {
        padding: 16px;
    }
    
    .game-header {
        padding: 20px 16px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-screen {
        padding: 24px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .game-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .admin-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .game-table th,
    .game-table td {
        padding: 12px 8px;
    }
    
    .content-preview {
        max-width: 150px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .feed-header {
        padding: 24px 16px;
    }
    
    .growth-card {
        padding: 20px;
    }
    
    .stat-card {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.25rem;
        letter-spacing: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .game-screen {
        padding: 20px;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .content-preview {
        max-width: 120px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-screen {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--soft-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}
