/*
Theme Name: Twitter Style Blog
Theme URI: 
Author: Marc Palau
Author URI: 
Description: A Twitter-like theme for WordPress blogs
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twitter-style-blog
*/


/* Theme Switcher Styles */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
.switch input:checked + .slider {
    background-color: #1da1f2;
}

.switch input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-label {
    font-size: 14px;
    color: #14171a;
}

/* fonts */
@font-face {
    font-family: 'opendyslexic';
    src: url('OpenDyslexic-Regular.otf');
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'opendyslexic';
    src: url('OpenDyslexic-Italic.otf');
    font-style: italic;
    font-weight: normal;
}

@font-face {
    font-family: 'opendyslexic';
    src: url('OpenDyslexic-Bold.otf');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'opendyslexic';
    src: url('OpenDyslexic-Bold-Italic.otf');
    font-weight: bold;
    font-style: italic;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f7f9fa;
    color: #14171a;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #15202b;
    color: #ffffff;
}

body.dark-mode .tweet-style-post {
    background: #192734;
    border-color: #38444d;
}

body.dark-mode .tweet-style-post:hover {
    background: #1e2c3a;
}

body.dark-mode .post-date,
body.dark-mode .tweet-actions a,
body.dark-mode .comment-metadata {
    color: #8899a6;
}

body.dark-mode .theme-switcher {
    background: #192734;
}
body.dark-mode #headerimg a,
body.dark-mode .author-name,
body.dark-mode .switch-label {
    color: #ffffff;
}

body.dark-mode .comments-area {
    background: #192734;
    border-color: #38444d;
}

body.dark-mode .comment-body {
    border-color: #38444d;
}
body.dark-mode .tweet-footer{
   border-color:#38444d;
}
/* Dyslexia Mode Styles */
body.dyslexia-mode code[class*="language-"],
.dyslexiaSwitch,
body.dyslexia-mode {
    font-family: 'opendyslexic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}



/* fonts */
@font-face {
  font-family: 'opendyslexic';
	src: url('OpenDyslexic-Regular.otf');
	font-style: normal;
	font-weight: normal;
} 

@font-face {
	font-family: 'opendyslexic';
	src: url('OpenDyslexic-Italic.otf');
	font-style: italic;
	font-weight: normal;
}

@font-face {
	font-family: 'opendyslexic';
	src: url('OpenDyslexic-Bold.otf');
	font-weight: bold;
	font-style: normal;
} 

@font-face {
	font-family: 'opendyslexic';
	src: url('OpenDyslexic-Bold-Italic.otf');
	font-weight: bold;
	font-style: italic;
} 

@font-face {
	font-family: eulexia;
	src: url('eulexia.woff2');
} 
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
hr{ display:none; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #ead8c1;
    /*#ead8c1 #f7f9fa*/
    color: #14171a;
}

/* Container */
.twitter-feed-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Post styling */
.tweet-style-post {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.tweet-style-post:hover {
    background-color: #f8f9fa;
}

/* Header styles */
#headerimg h1 a{
  text-decoration: none;
  color: black;
  font-size: 1.2em;
}
#headerimg h1{
  text-align:center;
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.author-avatar {
    margin-right: 10px;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
}

.post-date {
    color: #657786;
    font-size: 0.9em;
}

/* Content styles */
.tweet-content {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.4;
    word-wrap: break-word;
}

.tweet-content p {
    margin-bottom: 10px;
}

.tweet-content a {
    color: #1da1f2;
    text-decoration: none;
}

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

/* Image styles */
.tweet-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 10px;
}

/* Footer styles */
.tweet-footer {
    border-top: 1px solid #e1e8ed;
    padding-top: 10px;
    color: #657786;
}

.tweet-actions {
    display: flex;
    gap: 20px;
}

.tweet-actions a {
    color: #657786;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.tweet-actions a:hover {
    color: #1da1f2;
}

#footer p{
  padding: 1em;
  font-size: 0.3em;
  text-align: center;
}
#footer p a{
text-decoration:none;
color:black;
}
/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    text-decoration: none;
    color: #1da1f2;
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: #1da1f2;
    color: white;
}

.pagination .page-numbers:hover {
    background: #e8f5fd;
}

/* Header and footer areas */
.site-header {
    border-bottom: 1px solid #e1e8ed;
    padding: 15px 0;
    background: white;
}

.site-footer {
    border-top: 1px solid #e1e8ed;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: #657786;
}

/* Responsive design */
@media (max-width: 640px) {
    .twitter-feed-container {
        padding: 10px;
    }
    
    .tweet-style-post {
        border-radius: 0;
        margin-bottom: 10px;
    }
    
    .pagination .page-numbers {
        padding: 6px 12px;
        margin: 0 2px;
    }
}


/* Comments Area Styles */
.comments-area {
    margin-top: 30px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 20px;
}

.comments-title {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #14171a;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    border-bottom: 1px solid #e1e8ed;
    padding: 15px 0;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.author-name {
    font-weight: bold;
    color: #14171a;
}

.comment-metadata {
    font-size: 0.9em;
    color: #657786;
}

.comment-content {
    margin: 10px 0;
    color: #14171a;
    line-height: 1.4;
}

.reply {
    margin-top: 10px;
}

.reply-link a {
    color: #1da1f2;
    text-decoration: none;
    font-size: 0.9em;
}

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

/* Comment Form */
#respond {
    margin-top: 20px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    resize: vertical;
    margin-bottom: 10px;
}

.submit-comment {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-comment:hover {
    background: #1991da;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.nav-previous a,
.nav-next a {
    color: #1da1f2;
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    text-decoration: underline;
}

/* Nested Comments */
.comment-list .children {
    list-style: none;
    margin-left: 30px;
    padding-left: 20px;
    border-left: 2px solid #e1e8ed;
}



/* Single Post Styles - Add to your style.css */

/* Single post specific styles */
.single-post {
    margin-bottom: 30px;
}

.single-post .post-title {
    font-size: 1.8em;
    margin: 15px 0;
    line-height: 1.3;
}

.single-post .tweet-content {
    font-size: 1.1em;
    line-height: 1.6;
}

.post-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    font-size: 0.9em;
    color: #657786;
}

.post-categories,
.post-tags {
    margin: 5px 0;
}

.post-categories span,
.post-tags span {
    font-weight: bold;
    margin-right: 5px;
}

.post-categories a,
.post-tags a {
    color: #1da1f2;
    text-decoration: none;
}

.post-categories a:hover,
.post-tags a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    margin: 30px 0;
}

.navigation-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.prev-post,
.next-post {
    flex: 0 1 48%;
    padding: 15px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    text-decoration: none;
    color: #14171a;
    transition: background-color 0.2s;
}

.prev-post:hover,
.next-post:hover {
    background-color: #f8f9fa;
}

.next-post {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .navigation-links {
        flex-direction: column;
    }
    
    .prev-post,
    .next-post {
        flex: 1 1 100%;
    }
}



/* Code Block Styles - Add to your style.css */

/* Basic code block styling */
.wp-block-code {
    background: #282c34;
    color: #abb2bf;
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    position: relative;
}

.wp-block-code code {
    display: block;
    padding: 0;
    background: none;
    white-space: pre;
}

/* Line numbers */
.wp-block-code.has-line-numbers {
    padding-left: 3.8em;
    counter-reset: line;
}

.wp-block-code.has-line-numbers code {
    position: relative;
}

.wp-block-code.has-line-numbers code > span {
    display: inline-block;
    width: 100%;
    padding-left: 1em;
}

.wp-block-code.has-line-numbers code > span:before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: -2.8em;
    width: 2em;
    text-align: right;
    color: #636d83;
    padding-right: 0.8em;
    border-right: 1px solid #3e4451;
}

/* One Dark theme colors for different code elements */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #5c6370;
    font-style: italic;
}

.token.function {
    color: #61afef;
}

.token.keyword {
    color: #c678dd;
}

.token.string {
    color: #98c379;
}

.token.number {
    color: #d19a66;
}

.token.boolean,
.token.constant {
    color: #d19a66;
}

.token.class-name {
    color: #e5c07b;
}

.token.operator {
    color: #56b6c2;
}

.token.punctuation {
    color: #abb2bf;
}

.token.property {
    color: #e06c75;
}

.token.tag {
    color: #e06c75;
}

.token.attr-name {
    color: #d19a66;
}

.token.attr-value {
    color: #98c379;
}

/* Copy button */
.wp-block-code .copy-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.3em 0.8em;
    background: #3e4451;
    border: none;
    border-radius: 4px;
    color: #abb2bf;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wp-block-code .copy-button:hover {
    background: #4b5363;
}



/* Add these to your existing code block styles in style.css */

.wp-block-code {
/*    margin-top: 2.5em !important;  /* Space for the toolbar */
}

.code-toolbar {
    position: absolute;
    top: -1.8em;
    left: 0;
    font-size: 0.8em;
    color: #abb2bf;
    background: #3e4451;
    padding: 0.3em 0.8em;
    border-radius: 4px 4px 0 0;
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
}

/* Editor specific styles */
.wp-block-code .components-toolbar {
    background: #3e4451;
    border-radius: 4px 4px 0 0;
}
