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

:root {
    --accent-red: #ff3131;
    --dark-bg: #1a1a1a;
    --light-bg: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --hover-bg: #f5f5f5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
}

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

.site-header {
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.logo-text:hover {
    color: var(--accent-red);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
        z-index: 99;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--accent-red);
}

.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.hero-section {
    text-align: center;
    padding: 60px 0;
    background: white;
}

.hero-logo {
    max-width: 500px;
    height: auto;
    margin: 0 auto 30px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #cc2828;
}

.btn-secondary {
    display: inline-block;
    background: var(--text-dark);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.story-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-images {
    display: grid;
    gap: 2px;
    background: var(--border-color);
}

.story-images.count-1 {
    grid-template-columns: 1fr;
}

.story-images.count-2 {
    grid-template-columns: 1fr 1fr;
}

.story-images.count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.story-images.count-3 .story-image:first-child {
    grid-row: 1 / 3;
}

.story-images.count-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.story-images.count-5,
.story-images.count-6 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.story-images.count-5 .story-image:first-child,
.story-images.count-6 .story-image:first-child {
    grid-row: 1 / 3;
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.story-content {
    padding: 20px;
}

.story-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.story-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-text {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.vote-btn:hover {
    background: var(--hover-bg);
}

.vote-btn.voted {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

.read-more {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

.form-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-section h1 {
    margin-bottom: 30px;
    font-size: 2rem;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: var(--accent-red);
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-label {
    cursor: pointer;
    color: var(--accent-red);
    font-weight: 600;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

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

.file-preview-item .remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.content-section h1 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-section p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
}

.site-footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent-red);
}

.coffee-qr {
    margin-top: 15px;
}

.coffee-qr img {
    max-width: 150px;
    height: auto;
    border: 2px solid white;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
}

.contact-direct {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.email-link {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.documents-heading {
    margin-top: 40px;
    margin-bottom: 20px;
}

.documents-list {
    list-style: none;
    padding: 0;
}

.documents-list li {
    margin-bottom: 10px;
}

.document-link {
    color: var(--accent-red);
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0 40px 0;
}

.share-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-twitter {
    background: #1DA1F2;
}

.share-facebook {
    background: #1877F2;
}

.share-reddit {
    background: #FF4500;
}

.share-email {
    background: #666;
}

@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        text-align: center;
    }
}

.petition-count {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ff3131 0%, #cc2828 100%);
    border-radius: 8px;
    margin: 30px 0;
    color: white;
}

.count-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.count-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.petition-text {
    margin: 30px 0;
}

.petition-text ul {
    margin: 20px 0;
    padding-left: 25px;
}

.petition-text li {
    margin: 10px 0;
    line-height: 1.6;
}

.petition-form {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.petition-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
}

.share-section {
    margin: 40px 0;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.share-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.comment-form {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
}

.comment-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    padding: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.comment-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-text {
    line-height: 1.6;
    color: var(--text-dark);
}

.original-story-summary {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    border-left: 4px solid var(--accent-red);
}

.original-story-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.original-story-summary p {
    margin: 8px 0;
}

.update-form-section {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.update-form-section h3 {
    margin-top: 0;
}

.existing-updates {
    margin-top: 40px;
}

.update-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.update-status {
    font-size: 0.9rem;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.update-status.approved {
    background: #d4edda;
    color: #155724;
}

.update-status.pending {
    background: #fff3cd;
    color: #856404;
}

.update-text {
    line-height: 1.6;
}

.update-info {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.update-info h4 {
    margin-top: 0;
    color: #1976d2;
}

.update-info ul {
    margin: 10px 0;
    padding-left: 25px;
}

.update-info li {
    margin: 8px 0;
    line-height: 1.6;
}

.tabs-container {
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--accent-red);
}

.tab.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

.filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form input[type="search"] {
    flex: 1;
    min-width: 250px;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
}

.filter-form select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
    background: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-info {
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab {
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        margin-bottom: 0;
        margin-left: -2px;
    }
    
    .tab.active {
        border-bottom-color: var(--border-color);
        border-left-color: var(--accent-red);
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form input[type="search"],
    .filter-form select,
    .filter-form button {
        width: 100%;
    }
}

.story-updates-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.story-updates-section h2 {
    margin-bottom: 25px;
}

.story-update {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--accent-red);
    border-radius: 6px;
    margin-bottom: 20px;
}

.story-update .update-date {
    color: var(--accent-red);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.story-update .update-content {
    line-height: 1.6;
    color: var(--text-dark);
}

.story-detail {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.story-detail-header {
    padding: 40px;
    border-bottom: 1px solid var(--border-color);
}

.story-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.story-detail-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.9rem;
}

.story-detail-images {
    display: grid;
    gap: 2px;
    background: var(--border-color);
}

.story-detail-images.count-1 {
    grid-template-columns: 1fr;
}

.story-detail-images.count-2 {
    grid-template-columns: 1fr 1fr;
}

.story-detail-images.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.story-detail-images.count-4 {
    grid-template-columns: repeat(2, 1fr);
}

.story-detail-images.count-5,
.story-detail-images.count-6 {
    grid-template-columns: repeat(3, 1fr);
}

.story-detail-images img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.story-detail-content {
    padding: 40px;
}

.story-detail-content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.story-detail-footer {
    padding: 30px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 0;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-logo {
        max-width: 300px;
    }
    
    .form-section,
    .content-section {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .story-meta {
        font-size: 0.8rem;
    }
    
    .story-detail-images img {
        height: 250px;
    }
}

.admin-header {
    background: var(--dark-bg);
    color: white;
    padding: 20px 0;
    margin-bottom: 40px;
}

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

.admin-header-buttons {
    display: flex;
    gap: 15px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-red);
}

.stat-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 600;
}

.tab-btn:hover {
    color: var(--text-dark);
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.admin-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-section h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.submission-item, .comment-item {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 20px;
}

.submission-item h3, .comment-item h3 {
    margin-bottom: 10px;
}

.submission-meta, .comment-meta, .update-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.submission-actions, .comment-actions, .update-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-approve {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-reject, .btn-delete {
    background: var(--accent-red);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn-view {
    background: var(--text-dark);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.btn-logout {
    background: white;
    color: var(--dark-bg);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.badge {
    display: inline-block;
    background: var(--accent-red);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 5px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.export-btn {
    background: var(--accent-red);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.change-password-form {
    max-width: 600px;
}