/* ===== Font Faces ===== */ @font-face { font-family: 'Righteous'; src: url('/assets/fonts/Righteous-Regular.ttf') format('truetype'); font-display: swap; } @font-face { font-family: 'Montserrat'; src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype'); font-display: swap; } @font-face { font-family: 'Montserrat'; src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype'); font-weight: bold; font-display: swap; } /* ===== CSS Variables ===== */ :root { --background-clr: #283e3e; --background-accent-clr: #324f4f; --blue-clr: #47bcdf; --green-clr: #6ede9a; --white-clr: #ffffff; --card-border-radius: 25px; --dark-green: #1a3d2e; --dark-teal: #2c5f5f; --orange-clr: #f39c12; --text-color: #e0e0e0; --text-muted: #a0a0a0; --border-clr: #4a6a6a; --success-clr: #2ecc71; --error-clr: #e74c3c; --warning-clr: #f39c12; } /* ===== Reset and Base Styles ===== */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; margin: 0; padding: 0; font-size: 18px; } body { font-family: 'Montserrat', sans-serif; background-color: var(--background-clr); color: var(--text-color); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; } /* ===== Typography ===== */ .title { font-family: 'Righteous', sans-serif; } h1, h2, h3, h4, h5, h6 { font-family: 'Righteous', sans-serif; color: var(--white-clr); } a { color: var(--blue-clr); text-decoration: none; transition: color 0.3s ease; } a:hover { color: var(--green-clr); } /* ===== Layout ===== */ .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; } header { background-color: var(--background-clr); padding: 20px 0; border-bottom: 1px solid var(--border-clr); } main { flex: 1; padding: 30px 0; } footer { background-color: var(--background-clr); color: var(--text-muted); padding: 20px 0; border-top: 1px solid var(--border-clr); flex-shrink: 0; } .footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; } .copyright { color: var(--text-muted); font-size: 0.9rem; } .hosted { color: var(--text-muted); font-size: 0.9rem; } .eu-flag { display: inline-block; width: 20px; height: 14px; background: linear-gradient(to bottom, #003399 0%, #003399 33%, #ffcc00 33%, #ffcc00 66%, #003399 66%); border-radius: 2px; vertical-align: middle; margin: 0 5px; box-shadow: 0 0 2px rgba(0,0,0,0.5); position: relative; } .eu-flag::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient( 45deg, transparent, transparent 2px, rgba(255,255,255,0.3) 2px, rgba(255,255,255,0.3) 4px ); border-radius: 2px; } /* ===== Header/Navigation ===== */ .header-content { text-align: center; margin-bottom: 20px; } .logo { font-size: 3rem; font-weight: bold; color: var(--white-clr); margin-bottom: 5px; } .logo a { color: var(--white-clr); text-decoration: none; } .logo a:hover { color: var(--green-clr); } .slogan { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 5px; } .nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border-clr); } .nav a { color: var(--white-clr); text-decoration: none; padding: 10px 20px; border-radius: 10px; transition: all 0.3s ease; font-weight: 500; } .nav a:hover { background-color: var(--background-accent-clr); color: var(--green-clr); } .nav a.btn { background-color: var(--green-clr); color: var(--background-clr); } .nav a.btn:hover { background-color: #5ed58a; color: var(--background-clr); } /* ===== Buttons ===== */ .btn { display: inline-block; padding: 12px 24px; background-color: var(--green-clr); color: var(--background-clr); text-decoration: none; border: none; border-radius: 10px; cursor: pointer; font-size: 1rem; font-weight: bold; transition: all 0.3s ease; text-align: center; } .btn:hover { background-color: #5ed58a; transform: translateY(-2px); } .btn-primary { background-color: var(--green-clr); color: var(--background-clr); } .btn-primary:hover { background-color: #5ed58a; } .btn-secondary { background-color: var(--background-accent-clr); color: var(--white-clr); border: 1px solid var(--border-clr); } .btn-secondary:hover { background-color: var(--border-clr); } .btn-small { padding: 8px 12px; font-size: 0.9rem; background-color: var(--background-accent-clr); color: var(--white-clr); } .btn-small:hover { background-color: var(--border-clr); } .btn-icon { padding: 10px; border-radius: 50%; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; } .btn-danger { background-color: var(--error-clr); color: var(--white-clr); } .btn-danger:hover { background-color: #c0392b; } /* ===== Cards ===== */ .card { background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-clr); } .card h2, .card h3, .card h4 { color: var(--green-clr); margin-bottom: 15px; } .card-title { font-family: 'Righteous', sans-serif; color: var(--green-clr); font-size: 1.5rem; margin-bottom: 10px; } .card-content { color: var(--text-color); line-height: 1.7; } /* ===== Article Cards ===== */ .article-card { background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); padding: 25px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); border: 1px solid var(--border-clr); transition: transform 0.3s ease, box-shadow 0.3s ease; } .article-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); } .article-card .article-title { font-family: 'Righteous', sans-serif; color: var(--green-clr); font-size: 1.5rem; margin-bottom: 10px; } .article-card .article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 10px; } .article-card .article-meta span { display: inline-flex; align-items: center; gap: 5px; } .article-card .article-meta span::before { content: ''; display: inline-block; width: 4px; height: 4px; background-color: var(--green-clr); border-radius: 50%; } .article-card .article-text { color: var(--text-color); line-height: 1.7; margin-bottom: 15px; } .article-card .article-image { width: 100%; max-height: 250px; object-fit: cover; border-radius: 10px; margin-top: 15px; transition: transform 0.3s ease; } .article-card:hover .article-image { transform: scale(1.02); } /* Redacted text styling for WIP preview */ .redacted-text { color: transparent; background-color: var(--border-clr); border-radius: 3px; padding: 2px 4px; margin: 2px 0; display: inline; line-height: 1.4; } .redacted-text::selection { background: var(--green-clr); color: var(--background-clr); } /* ===== Forms ===== */ .form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; } .form-group label { font-weight: 500; color: var(--white-clr); font-size: 1rem; } .form-control { padding: 12px 15px; border: 1px solid var(--border-clr); border-radius: 8px; font-size: 1rem; background-color: var(--background-clr); color: var(--white-clr); transition: border-color 0.3s ease, box-shadow 0.3s ease; } .form-control:focus { border-color: var(--green-clr); box-shadow: 0 0 0 3px rgba(110, 222, 154, 0.2); outline: none; } .form-control.error { border-color: var(--error-clr); } .form-control::placeholder { color: var(--text-muted); } textarea.form-control { resize: vertical; min-height: 120px; } select.form-control { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; } select.form-control option { background-color: var(--background-clr); color: var(--white-clr); } .error-message { color: var(--error-clr); font-size: 0.85rem; margin-top: 5px; } .help-text { color: var(--text-muted); font-size: 0.85rem; font-style: italic; } /* ===== Form Rows and Layout ===== */ .form-row { display: flex; gap: 20px; margin-bottom: 20px; } .form-row .form-group { flex: 1; } .form-row .full-width { flex: none; width: 100%; } .form-actions { display: flex; gap: 15px; margin-top: 30px; } /* ===== Checkbox and Radio ===== */ .checkbox-group, .radio-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; } .checkbox-label, .radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 15px; background-color: var(--background-clr); border: 1px solid var(--border-clr); border-radius: 8px; transition: all 0.3s ease; font-size: 0.95rem; } .checkbox-label:hover, .radio-label:hover { background-color: var(--background-accent-clr); border-color: var(--green-clr); } .checkbox-label input[type="checkbox"], .checkbox-label input[type="radio"], .radio-label input[type="checkbox"], .radio-label input[type="radio"] { cursor: pointer; width: 18px; height: 18px; accent-color: var(--green-clr); } /* ===== Alerts and Notifications ===== */ .alert { padding: 15px 20px; margin-bottom: 20px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; animation: slideIn 0.5s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .alert-success { background-color: rgba(46, 204, 113, 0.15); color: var(--green-clr); border: 1px solid var(--green-clr); } .alert-error { background-color: rgba(231, 76, 60, 0.15); color: var(--error-clr); border: 1px solid var(--error-clr); } .alert-warning { background-color: rgba(243, 156, 18, 0.15); color: var(--warning-clr); border: 1px solid var(--warning-clr); } .alert .close { cursor: pointer; font-weight: bold; padding: 0 10px; background: transparent; border: none; color: inherit; font-size: 1.2rem; } .alert .close:hover { opacity: 0.7; } /* ===== Section Headings ===== */ .section { margin-bottom: 40px; } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-clr); } .section-header h2 { color: var(--green-clr); font-family: 'Righteous', sans-serif; font-size: 2rem; } .section-actions { display: flex; gap: 10px; } .section-title { text-align: center; margin-bottom: 30px; } .section-title h2 { color: var(--green-clr); font-family: 'Righteous', sans-serif; font-size: 2.2rem; } /* ===== Grids ===== */ .articles-grid, .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 25px; margin: 20px 0; } /* ===== Tables ===== */ .table { width: 100%; border-collapse: collapse; margin: 20px 0; } .table th, .table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-clr); } .table th { background-color: var(--background-clr); color: var(--white-clr); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .table tr:hover { background-color: rgba(255, 255, 255, 0.05); } .table tr.selected { background-color: rgba(110, 222, 154, 0.1); } /* ===== Status Badges ===== */ .status-badge { padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; display: inline-block; } .status-badge.published { background-color: rgba(46, 204, 113, 0.2); color: var(--green-clr); } .status-badge.draft { background-color: rgba(243, 156, 18, 0.2); color: var(--warning-clr); } .status-badge.pending { background-color: rgba(71, 188, 223, 0.2); color: var(--blue-clr); } .status-badge.archived { background-color: rgba(192, 57, 43, 0.2); color: var(--error-clr); } /* ===== Passphrase/Token Input ===== */ .passphrase-container { max-width: 500px; margin: 50px auto; padding: 30px; background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); border: 1px solid var(--border-clr); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); } .passphrase-container h2 { color: var(--green-clr); text-align: center; margin-bottom: 20px; } .passphrase-container p { text-align: center; color: var(--text-muted); margin-bottom: 30px; } .passphrase-input { display: flex; gap: 15px; } .passphrase-input .form-control { flex: 1; } /* ===== Confirmation Screen ===== */ .confirmation-container { max-width: 600px; margin: 50px auto; padding: 40px; background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); border: 1px solid var(--border-clr); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); text-align: center; } .confirmation-container .icon { font-size: 4rem; color: var(--green-clr); margin-bottom: 20px; } .confirmation-container h2 { color: var(--green-clr); margin-bottom: 15px; } .confirmation-container p { color: var(--text-color); margin-bottom: 30px; line-height: 1.8; } /* ===== Archive/PDF List ===== */ .archive-container { margin: 30px 0; } .pdf-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: var(--background-accent-clr); border-radius: 10px; margin-bottom: 15px; border: 1px solid var(--border-clr); transition: background-color 0.3s ease; } .pdf-item:hover { background-color: var(--border-clr); } .pdf-info { flex: 1; } .pdf-info h4 { color: var(--green-clr); margin-bottom: 5px; } .pdf-info p { color: var(--text-muted); font-size: 0.9rem; } .pdf-actions { display: flex; gap: 10px; } .pdf-icon { width: 40px; height: 40px; background-color: var(--green-clr); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--background-clr); font-size: 1.2rem; transition: transform 0.3s ease; } .pdf-icon:hover { transform: scale(1.1); } /* ===== Edit List ===== */ .edit-list { margin: 20px 0; } .edit-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: var(--background-accent-clr); border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--border-clr); transition: all 0.3s ease; } .edit-item:hover { background-color: var(--border-clr); } .edit-item-title { flex: 1; color: var(--white-clr); font-weight: 500; } .edit-item-actions { display: flex; gap: 10px; } .edit-icon { width: 40px; height: 40px; background-color: var(--blue-clr); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--background-clr); font-size: 1.2rem; cursor: pointer; transition: all 0.3s ease; } .edit-icon:hover { background-color: #3a9ed9; transform: scale(1.05); } /* ===== Image Upload Preview ===== */ .image-preview { margin-top: 20px; position: relative; } .image-preview-container { width: 150px; height: 150px; border: 2px dashed var(--border-clr); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: var(--background-clr); } .image-preview-container img { width: 100%; height: 100%; object-fit: cover; } .image-preview-placeholder { color: var(--text-muted); text-align: center; padding: 20px; } .image-preview-actions { margin-top: 10px; display: flex; gap: 10px; justify-content: center; } /* Client-side image preview (from file input) */ .file-upload-wrapper + p.file-upload-info + .image-preview { display: block; margin-top: 15px; } .file-upload-wrapper + p.file-upload-info + .image-preview img { max-width: 200px; max-height: 200px; border-radius: 5px; display: block; } /* ===== Writer Verification ===== */ .writer-verification { max-width: 500px; margin: 50px auto; padding: 30px; background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); border: 1px solid var(--border-clr); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); } .writer-verification h2 { color: var(--green-clr); text-align: center; margin-bottom: 20px; } .writer-verification p { text-align: center; color: var(--text-muted); margin-bottom: 30px; } .writer-select { margin-bottom: 20px; } /* ===== Home Page Sections ===== */ .home-sections { display: flex; flex-direction: column; gap: 40px; } .submit-section { text-align: center; padding: 40px; background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); border: 1px solid var(--border-clr); } .submit-section h2 { color: var(--green-clr); margin-bottom: 15px; } .submit-section p { color: var(--text-muted); margin-bottom: 25px; max-width: 600px; margin-left: auto; margin-right: auto; } .submit-section .btn { font-size: 1.1rem; padding: 15px 30px; } .wip-section { padding: 30px; background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); border: 1px solid var(--border-clr); } .wip-section h2 { color: var(--green-clr); margin-bottom: 20px; text-align: center; } .wip-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .wip-article { background-color: var(--background-clr); border-radius: 10px; padding: 20px; border: 1px solid var(--border-clr); } .wip-article h4 { color: var(--green-clr); margin-bottom: 10px; } .wip-article .wip-content { color: var(--text-muted); font-style: italic; } .archive-section { padding: 30px; background-color: var(--background-accent-clr); border-radius: var(--card-border-radius, 20px); border: 1px solid var(--border-clr); } .archive-section h2 { color: var(--green-clr); margin-bottom: 20px; text-align: center; } /* ===== Icons ===== */ .icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; } .icon.small { width: 24px; height: 24px; font-size: 14px; } .icon.medium { width: 36px; height: 36px; font-size: 18px; } .icon.large { width: 48px; height: 48px; font-size: 24px; } /* ===== Responsive Design ===== */ @media (max-width: 768px) { html, body { font-size: 16px; } .logo { font-size: 2.2rem; } .slogan { font-size: 1rem; } .nav { flex-direction: column; align-items: center; gap: 10px; } .nav a { padding: 8px 12px; font-size: 0.9rem; } .container { padding: 0 15px; } main { padding: 20px 0; } .form-row { flex-direction: column; gap: 0; } .articles-grid, .cards-grid, .wip-articles { grid-template-columns: 1fr; } .form-actions { flex-direction: column; } .form-actions .btn { width: 100%; } .section-header { flex-direction: column; align-items: flex-start; gap: 15px; } .alert { flex-direction: column; gap: 10px; text-align: center; } .submit-section p { font-size: 0.95rem; } .passphrase-input { flex-direction: column; } .passphrase-input .btn { width: 100%; } } @media (max-width: 480px) { .logo { font-size: 1.8rem; } .card, .article-card, .confirmation-container, .passphrase-container, .writer-verification { padding: 20px; } .section-header h2 { font-size: 1.5rem; } .btn { padding: 10px 20px; font-size: 0.95rem; } .pdf-item, .edit-item { flex-direction: column; gap: 10px; text-align: center; } .pdf-info p, .edit-item-title { font-size: 0.9rem; } } /* ===== Print Styles ===== */ @media print { .nav, .header-content, .btn, .form-actions, .section-actions { display: none !important; } .card, .article-card, .pdf-item { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; background-color: white !important; color: black !important; } .card h2, .card h3, .card h4, .article-card .article-title { color: #333 !important; } } /* ===== Animations ===== */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeIn 0.5s ease; } .slide-up { animation: slideUp 0.5s ease; } /* ===== Utility Classes ===== */ .text-center { text-align: center; } .text-muted { color: var(--text-muted); } .text-green { color: var(--green-clr); } .text-error { color: var(--error-clr); } .mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; } .p-10 { padding: 10px; } .p-20 { padding: 20px; } .gap-10 { gap: 10px; } .gap-20 { gap: 20px; } /* ===== Scrollbar Styling ===== */ ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: var(--background-clr); } ::-webkit-scrollbar-thumb { background: var(--border-clr); border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: var(--green-clr); } /* ===== File Upload Styling ===== */ .file-upload-wrapper { position: relative; overflow: hidden; display: inline-block; } .file-upload-wrapper input[type="file"] { position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; } .file-upload-label { display: inline-block; padding: 12px 24px; background-color: var(--background-accent-clr); color: var(--white-clr); border: 1px solid var(--border-clr); border-radius: 8px; cursor: pointer; transition: all 0.3s ease; } .file-upload-label:hover { background-color: var(--border-clr); border-color: var(--green-clr); } .file-upload-info { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); }