/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0ea5e9;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #111827;
}

.nav-link.active {
    color: #0ea5e9;
    font-weight: 500;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-button {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #0ea5e9;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
}

.user-button:hover {
    background: #0284c7;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 2.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 12rem;
    z-index: 10;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-button:hover {
    background: #f9fafb;
}

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-primary {
    color: #0ea5e9;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #0ea5e9;
    color: white;
}

.btn-primary:hover {
    background: #0284c7;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-success {
    background: #10b981;
    color: white;
    border: none;
    text-align: center;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Card */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Messages */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.info-box {
    background: #fef3c7;
    border: 1px solid #fde047;
    border-radius: 0.5rem;
    padding: 1rem;
}

.info-box p {
    font-size: 0.875rem;
    color: #92400e;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Utility Classes */
.text-muted {
    color: #6b7280;
}

.text-sm {
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-character {
    background: #dbeafe;
    color: #1e40af;
}

.badge-location {
    background: #dcfce7;
    color: #166534;
}

.badge-item {
    background: #fef3c7;
    color: #92400e;
}

.badge-faction {
    background: #fce7f3;
    color: #9f1239;
}

.badge-term {
    background: #e0e7ff;
    color: #3730a3;
}

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

.modal-content {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #111827;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Select */
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

/* Manuscript Structure */
.manuscript-structure {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.manuscript-act {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    background: white;
}

.manuscript-chapter {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid #0ea5e9;
}

.manuscript-scene {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.manuscript-scene:hover {
    background: #f3f4f6;
    border-color: #0ea5e9;
}

.scene-content {
    flex: 1;
}

.scene-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.scene-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.scene-meta span {
    margin-right: 0.5rem;
}

.scene-preview {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.scene-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.part-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.part-header h2,
.part-header h3 {
    margin: 0;
}

.part-meta {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: normal;
}

.part-actions {
    display: flex;
    gap: 0.5rem;
}

/* Scene Editor */
.modal-large {
    max-width: 900px;
}

.modal-xlarge {
    max-width: 1400px;
    width: 95%;
    height: 90vh;
}

.modal-xlarge .modal-content {
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Editor Container with Sidebar */
.editor-container {
    display: flex;
    gap: 1rem;
    flex: 1;
    overflow: hidden;
}

/* Bible Sidebar */
.bible-sidebar {
    width: 300px;
    border-right: 1px solid #e5e7eb;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-filter {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-filter select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.bible-reference-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.bible-ref-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    cursor: default;
}

.bible-ref-item:hover {
    background: #f3f4f6;
}

.bible-ref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.bible-ref-summary {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.editor-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-main .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 0;
}

.editor-main textarea {
    flex: 1;
    resize: none;
    min-height: 0;
}

/* Chapter Cards */
.manuscript-chapter-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.manuscript-chapter-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.chapter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.chapter-card-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #111827;
}

.chapter-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.chapter-meta span {
    margin-right: 0.75rem;
}

.chapter-actions {
    display: flex;
    gap: 0.5rem;
}

.chapter-preview {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.scene-stats {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Grammar Checker */
.grammar-results {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.grammar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.btn-close-grammar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-grammar:hover {
    color: #111827;
}

.grammar-issue {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
}

.grammar-issue:hover {
    background-color: #f9fafb;
}

.grammar-issue:last-child {
    border-bottom: none;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.issue-highlight-label {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
}

.issue-type {
    text-transform: capitalize;
}

.issue-position {
    font-size: 0.75rem;
    color: #9ca3af;
}

.issue-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.issue-sentence {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.25rem;
    border-left: 3px solid #e5e7eb;
}

/* Textarea highlight on selection */
#chapterContent {
    transition: background-color 0.3s;
}

/* ===== Writers Bubble ===== */
.bubble-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.bubble-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-bottom: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-active {
    background: #3b82f6;
    color: white;
}

.bubble-canvas-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: #f9fafb;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    cursor: grab;
}

.bubble-canvas-container:active {
    cursor: grabbing;
}

.bubble-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 0.2s;
}

.connections-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transform-origin: center center;
    transition: transform 0.2s;
}

.connection-line {
    pointer-events: all;
    cursor: pointer;
}

.connection-line:hover {
    stroke: #3b82f6;
    stroke-width: 3;
}

.bubble {
    position: absolute;
    width: 150px;
    min-height: 150px;
    border-radius: 50%;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 2;
    user-select: none;
}

.bubble:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    z-index: 3;
}

.bubble-selected {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.bubble-context-selected {
    border: 3px solid #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    z-index: 100;
}

.bubble-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #111827;
    font-weight: 500;
}

.bubble-instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6b7280;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 0;
}

.bubble-instructions p {
    margin: 0.5rem 0;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    min-width: 220px;
    overflow: hidden;
}

.context-menu-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
}

.context-menu-item:hover {
    background-color: #eff6ff;
    color: #1e40af;
}

.context-menu-item:first-child {
    border-radius: 0.375rem 0.375rem 0 0;
}

.context-menu-item:last-child {
    border-radius: 0 0 0.375rem 0.375rem;
}

.context-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.25rem 0;
}

/* Color Picker */
.color-wheel-section {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.color-wheel-input {
    width: 120px;
    height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.color-wheel-input:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.color-picker-divider {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 1rem 0;
    padding: 0.5rem;
    position: relative;
}

.color-picker-divider::before,
.color-picker-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.color-picker-divider::before {
    left: 0;
}

.color-picker-divider::after {
    right: 0;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.color-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    margin: 0 auto;
}

.color-option:hover {
    border-color: #3b82f6;
    transform: scale(1.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== Inspiration Boards ===== */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.board-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.board-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.board-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.board-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}

.board-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-preview-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.board-card-content {
    padding: 1.25rem;
}

.board-card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.board-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.board-card-actions {
    padding: 0 1.25rem 1.25rem 1.25rem;
    display: flex;
    gap: 0.5rem;
}

/* Pins Masonry Layout */
.pins-masonry {
    column-count: 4;
    column-gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .pins-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .pins-masonry {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .pins-masonry {
        column-count: 1;
    }
}

.pin-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
}

.pin-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.pin-image {
    width: 100%;
    height: auto;
    display: block;
}

.pin-link-preview {
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
}

.pin-link-preview span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.pin-link-preview a {
    font-size: 0.875rem;
    color: #3b82f6;
    word-break: break-all;
}

.pin-content {
    padding: 1rem;
}

.pin-caption {
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
}

.pin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.pin-credit,
.pin-bible-link {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.5rem 0;
}

.pin-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.badge-spelling {
    background: #fef2f2;
    color: #991b1b;
}

.badge-grammar {
    background: #fef3c7;
    color: #92400e;
}

.badge-style {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-length {
    background: #fce7f3;
    color: #9f1239;
}

.badge-repetition {
    background: #f3e8ff;
    color: #6b21a8;
}

.badge-capitalization {
    background: #dbeafe;
    color: #1e40af;
}

.badge-formatting {
    background: #f0fdf4;
    color: #166534;
}

/* Inspiration Board Canvas */
.inspiration-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.toolbar-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.toolbar-center {
    display: flex;
    gap: 0.5rem;
}

.toolbar-right {
    display: flex;
    gap: 0.5rem;
}

.inspiration-canvas-container {
    width: 100%;
    height: 600px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

.inspiration-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
}

.canvas-pin {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: move;
    overflow: hidden;
    border: 2px solid transparent;
    transition: box-shadow 0.2s;
}

.canvas-pin:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    border-color: #6366f1;
}

.canvas-pin-image {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

.canvas-pin-link {
    padding: 1.5rem;
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.canvas-pin-link span {
    font-size: 2rem;
}

.canvas-pin-link a {
    color: #6366f1;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.9rem;
}

.canvas-pin-link a:hover {
    text-decoration: underline;
}

.canvas-pin-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1rem 0.75rem;
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.canvas-pin:hover .canvas-pin-overlay {
    opacity: 1;
}

.canvas-pin-caption {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.canvas-pin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.canvas-pin-tags .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Resize Handles */
.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #6366f1;
    border: 2px solid white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.canvas-pin:hover .resize-handle {
    opacity: 1;
}

.resize-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.resize-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.resize-sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.resize-se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.inspiration-instructions {
    background: #e0e7ff;
    border-left: 4px solid #6366f1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.inspiration-instructions p {
    margin: 0.5rem 0;
    color: #333;
}

/* Goals & Planner */
.level-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.streak-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.xp-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.xp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.xp-label {
    font-weight: 600;
    color: #333;
    font-size: 1.125rem;
}

.xp-amount {
    color: #666;
    font-size: 0.875rem;
}

.xp-bar {
    width: 100%;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.goals-section, .todos-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Goal Cards (Calendar Style) */
.goals-calendar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.goal-card.goal-completed {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
    opacity: 0.8;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.goal-type-badge {
    background: rgba(0,0,0,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-check {
    font-size: 1.25rem;
}

.goal-target {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 0.5rem;
}

.goal-completed .goal-target {
    color: #16a34a;
}

.goal-description {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.goal-progress {
    margin-top: 1rem;
}

.goal-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #0284c7 100%);
    transition: width 0.5s ease;
}

.goal-completed .goal-progress-fill {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.goal-progress-text {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
}

.goal-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Sticky Notes (To-Do List) */
.sticky-notes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.sticky-note {
    background: #fef08a;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sticky-note:nth-child(even) {
    transform: rotate(1deg);
}

.sticky-note:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.sticky-note.priority-high {
    background: #fecaca;
    border-left: 4px solid #dc2626;
}

.sticky-note.priority-medium {
    background: #fef08a;
    border-left: 4px solid #eab308;
}

.sticky-note.priority-low {
    background: #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.sticky-note.todo-completed {
    opacity: 0.6;
}

.sticky-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-delete {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
}

.todo-delete:hover {
    color: #dc2626;
}

.sticky-note-content {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}

.completed-text {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

/* Celebration Animation */
.celebration-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: celebrationBounce 0.5s ease;
    z-index: 10000;
}

@keyframes celebrationBounce {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Idea Cards */
.idea-cards-header {
    text-align: center;
    margin-bottom: 2rem;
}

.idea-cards-header h2 {
    margin-bottom: 0.5rem;
}

.card-deck-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.card-deck h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.playing-card {
    width: 100%;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.playing-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    border: 3px solid #667eea;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card-label {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-back p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.character-card-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.character-card-content strong {
    font-size: 1.1rem;
    color: #667eea;
}

.character-card-content small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.idea-cards-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.playing-card:hover .card-front {
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }

    .nav-link {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .inspiration-toolbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .toolbar-left, .toolbar-center, .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-center {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card-deck-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .playing-card {
        height: 240px;
    }
    
    .idea-cards-actions {
        flex-direction: column;
    }
    
    .idea-cards-actions button {
        width: 100%;
    }
}

