
/* Step Container Styles */
.step-container {
	display: none;
	min-height: calc(100vh - 60px);
	padding: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.step-container.active {
	display: block;
}

/* Step 1: Blog Details Styles */
.step-header {
	text-align: center;
	margin-bottom: 30px;
}

.step-header h1 {
	color: #333;
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.step-header p {
	color: #666;
	font-size: 1.1rem;
}

.details-form {
	margin: 0 auto;
	background: white;
	padding: 30px;
	border-radius: 12px;
    overflow-x: hidden;
    overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5rem;
}

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

.form-group input,
.form-group select {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
	background: white;
}

.form-group input:focus,
.form-group select:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input[readonly] {
	background-color: #f8f9fa;
	color: #6c757d;
	cursor: not-allowed;
}

.form-actions {
	text-align: center;
	margin-top: 30px;
}

.next-btn {
	background: linear-gradient(135deg, #007bff, #0056b3);
	color: white;
	border: none;
	padding: 12px 30px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.next-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* Step 2: Blog Editor Styles */
.editor-header {
	margin-bottom: 20px;
}

.editor-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px 0;
	border-bottom: 2px solid #e1e5e9;
}

.back-btn {
	background: #6c757d;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background-color 0.3s ease;
}

.back-btn:hover {
	background: #5a6268;
}

.step-info h2 {
	color: #333;
	font-size: 1.8rem;
	margin: 0;
}

.step-info p {
	color: #666;
	margin: 5px 0 0 0;
}

.editor-container {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin-bottom: 20px;
}

.editor-toolbar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 12px 15px;
	background: #f8f9fa;
	border-bottom: 1px solid #e1e5e9;
	flex-wrap: wrap;
}

.toolbar-btn {
	background: white;
	border: 1px solid #ddd;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	min-width: 35px;
	text-align: center;
	font-family: inherit;
}

.toolbar-btn:hover {
	background: #e9ecef;
	border-color: #adb5bd;
	transform: translateY(-1px);
}

.toolbar-btn.active {
	background: #007bff;
	color: white;
	border-color: #007bff;
}

.toolbar-separator {
	width: 1px;
	height: 25px;
	background: #ddd;
	margin: 0 8px;
}

.blog-editor {
	min-height: 500px;
	padding: 20px;
	font-size: 1.1rem;
	line-height: 1.7;
	color: #333;
	outline: none;
	border: none;
	resize: none;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.blog-editor:empty:before {
	content: attr(placeholder);
	color: #adb5bd;
	font-style: italic;
}

/* Markdown Dialog Styles */
.md-dialog {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.md-dialog-content {
	background: white;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: 90%;
}

.md-dialog-content h3 {
	margin: 0 0 20px 0;
	color: #333;
	font-size: 1.4rem;
}

.md-dialog-content .form-group {
	margin-bottom: 15px;
}

.md-dialog-content label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.md-dialog-content input {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #e1e5e9;
	border-radius: 6px;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.md-dialog-content input:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.dialog-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

.btn-cancel {
	background: #6c757d;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background-color 0.3s ease;
}

.btn-cancel:hover {
	background: #5a6268;
}

.btn-insert {
	background: #007bff;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background-color 0.3s ease;
}

.btn-insert:hover {
	background: #0056b3;
}

.blog-editor h2,
.blog-editor h3 {
	margin: 20px 0 10px 0;
	color: #333;
}

.blog-editor p {
	margin-bottom: 15px;
}

.blog-editor ul,
.blog-editor ol {
	margin: 15px 0;
	padding-left: 30px;
}

.editor-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.publish-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
}

.publish-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
	.form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.step-container {
		padding: 15px;
	}
	
	.details-form {
		padding: 20px;
	}
	
	.editor-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.editor-toolbar {
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px;
	}
	
	.toolbar-btn {
		min-width: 40px;
		padding: 10px;
	}
	
	.editor-actions {
		flex-direction: column;
		align-items: center;
	}
	
	.publish-btn {
		width: 200px;
	}
	
	.md-dialog-content {
		padding: 20px;
		margin: 20px;
	}
	
	.dialog-actions {
		flex-direction: column;
		gap: 8px;
	}
	
	.btn-cancel,
	.btn-insert {
		width: 100%;
	}
}

/* Markdown Editor Specific Styles */
.markdown-textarea {
	font-family: 'Segoe UI', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace !important;
}

.markdown-textarea::-webkit-scrollbar {
	width: 8px;
}

.markdown-textarea::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 4px;
}

.markdown-textarea::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 4px;
}

.markdown-textarea::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

#createBlogForm {
	min-height: 90vh;
	width: 100vw;
	display: flex;
	flex-direction: column;
	padding: 0 2ch;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    max-width: 300px;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Add a checkmark before success messages */
.toast.success .toast-message::before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
}

/* Add an X before error messages */
.toast.error .toast-message::before {
    content: '✗';
    margin-right: 8px;
    font-weight: bold;
}

/* Preview Button Styles */
.preview-btn {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    min-width: auto !important;
}

.preview-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Preview Modal Styles */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.preview-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.preview-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-preview-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-preview-btn:hover {
    background: #e9ecef;
    color: #333;
}

.preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.preview-content {
    line-height: 1.8;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Blog header styles for preview */
.preview-content .blog-header {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.preview-content .blog-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    border: none;
    padding: 0;
}

.preview-content .blog-subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    font-weight: 400;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.preview-content .blog-meta {
    font-size: 0.95rem;
    color: #868e96;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-content .blog-meta .author {
    font-weight: 600;
    color: #007bff;
}

.preview-content .blog-meta .category {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.preview-content .blog-content {
    margin-top: 2rem;
}

/* Styled content for preview */
.preview-content h1,
.preview-content h2,
.preview-content h3,
.preview-content h4,
.preview-content h5,
.preview-content h6 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.preview-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.preview-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 0.3rem;
}

.preview-content h3 {
    font-size: 1.5rem;
}

.preview-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.preview-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.preview-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.preview-content pre {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
}

.preview-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.preview-content ul,
.preview-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.preview-content li {
    margin-bottom: 0.5rem;
}

.preview-content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.preview-content a:hover {
    border-bottom-color: #007bff;
    color: #0056b3;
}

.preview-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #6c757d);
    margin: 2rem 0;
    border-radius: 1px;
}


.preview-content th,
.preview-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.preview-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.preview-content tbody tr:hover {
    background: #f8f9fa;
}

/* Responsive styles */
@media (max-width: 768px) {
    .preview-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .preview-header {
        padding: 15px 20px;
    }
    
    .preview-body {
        padding: 20px;
    }
    
    .preview-content h1 {
        font-size: 2rem;
    }
    
    .preview-content h2 {
        font-size: 1.5rem;
    }
    
    .preview-content .blog-header h1 {
        font-size: 2rem;
    }
    
    .preview-content .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .preview-content .blog-meta {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.3rem;
    }
}

.club-options {
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 6px;
}

.club-option {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	position: relative;
	cursor: pointer;
}

.club-option input[type="radio"] {
	width: 16px;
	height: 16px;
	margin: 0;
	cursor: pointer;
}

.club-option input[type="radio"]:focus {
	outline: none;
	box-shadow: none;
}

input[type="radio"] {
	accent-color: #000;
}

[data-theme="light"] .club-option {
	color: #000000; /* Μαύρο κείμενο */
}

[data-theme="light"] input[type="radio"] {
	accent-color: #000000; /* Μαύρο κουμπί επιλογής */
}

[data-theme="light"] .club-options {
	background-color: #ffffff;
	border-radius: 8px;
	padding: 10px;
}


