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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    overflow-x: auto;
}

header {
    background-color: #ff6600;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background-color: white;
    color: #ff6600;
    font-weight: 600;
}

.btn-secondary {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.columns-container {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    height: calc(100vh - 80px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.column {
    background-color: #2a2a2a;
    border-radius: 8px;
    min-width: 350px;
    max-width: 350px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
    scroll-snap-align: start;
}

.column.dragging {
    opacity: 0.5;
}

.column-header {
    padding: 1rem;
    background-color: #333;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 2px solid #ff6600;
}

.column-title {
    font-weight: 600;
    font-size: 1rem;
    color: #ff6600;
}

.column-controls {
    display: flex;
    gap: 0.5rem;
}

.column-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.column-btn:hover {
    color: #ff6600;
}

.column-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.story-item {
    background-color: #1a1a1a;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #ff6600;
    transition: transform 0.2s;
}

.story-item:hover {
    transform: translateX(4px);
}

.story-title {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.story-title a {
    color: #e0e0e0;
    text-decoration: none;
}

.story-title a:hover {
    color: #ff6600;
}

.story-meta {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.story-meta a {
    color: #888;
    text-decoration: none;
}

.story-meta a:hover {
    color: #ff6600;
}

.share-buttons {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.story-item:hover .share-buttons,
.story-item.active .share-buttons {
    opacity: 1;
    visibility: visible;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    font-size: 1rem;
    background-color: rgba(255, 102, 0, 0.1);
}

.share-btn:hover {
    background-color: rgba(255, 102, 0, 0.3);
    transform: scale(1.1);
}

.share-btn:active {
    transform: scale(0.95);
}

.share-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.share-story {
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.share-comments {
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.in-reply-to {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(255, 102, 0, 0.1);
    border-left: 2px solid rgba(255, 102, 0, 0.5);
    font-size: 0.85rem;
    border-radius: 2px;
}

.reply-label {
    color: #888;
    font-style: italic;
    display: block;
    margin-bottom: 0.25rem;
}

.reply-link {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.reply-link:hover {
    color: #ff6600;
}

.story-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.4;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #ff6600;
}

.column-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.column-type-btn {
    padding: 1rem;
    background-color: #333;
    color: #e0e0e0;
    border: 2px solid #444;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.column-type-btn:hover {
    background-color: #ff6600;
    border-color: #ff6600;
    color: white;
}

#user-input-container {
    margin-bottom: 1rem;
}

#user-input-container.hidden {
    display: none;
}

#username-input {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 2px solid #444;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#username-input:focus {
    outline: none;
    border-color: #ff6600;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-state h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.error-message {
    background-color: #ff4444;
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.refresh-indicator {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #888;
}

/* Scrollbar styling */
.column-content::-webkit-scrollbar {
    width: 8px;
}

.column-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.column-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.column-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* About modal styling */
.about-content {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-content p {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.about-content h3 {
    color: #ff6600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.about-content a {
    color: #ff6600;
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

#about-btn {
    margin-left: 0.5rem;
}

