/*
Theme Name: WebfineT TwitterLike
Theme URI: https://webfinet.com
Description: A secure, Twitter-like social media theme for WordPress
Version: 1.2
Author: WebfineT Team
Author URI: https://webfinet.com
Text Domain: webfinet-twitterlike
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
Tags: social, twitter, responsive, secure, dark

This theme is designed with security as the top priority, following all browser security standards and WordPress coding standards.
*/

:root {
    --primary-color: #1DA1F2;
    --primary-hover: #1a91da;
    --background-color: #15202B;
    --card-background: #192734;
    --text-primary: #FFFFFF;
    --text-secondary: #8899A6;
    --border-color: #38444D;
    --hover-color: #1c2732;
    --error-color: #e0245e;
    --success-color: #17bf63;
    --warning-color: #ffad1f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.twitterclone-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    min-height: 100vh;
}

.twitterclone-sidebar {
    width: 275px;
    padding: 0 12px;
    position: fixed;
    height: 100vh;
    border-right: 1px solid var(--border-color);
    background-color: var(--background-color);
    z-index: 1000;
}

.twitterclone-sidebar .sidebar-content {
    padding: 12px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.site-logo {
    padding: 12px;
    margin-bottom: 16px;
}

.site-logo img {
    max-width: 40px;
    height: auto;
}

.main-navigation ul {
    list-style: none;
    margin: 16px 0;
}

.main-navigation .nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 29px;
    margin: 4px 0;
    transition: background-color 0.2s;
    font-size: 20px;
    font-weight: 400;
}

.main-navigation .nav-item:hover,
.main-navigation .nav-item.active {
    background-color: var(--hover-color);
}

.nav-icon {
    margin-right: 16px;
    font-size: 24px;
    width: 24px;
    text-align: center;
}

.tweet-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 29px;
    font-weight: bold;
    font-size: 16px;
    margin: 16px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.tweet-button:hover {
    background-color: var(--primary-hover);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 29px;
    margin-top: auto;
    cursor: pointer;
    transition: background-color 0.2s;
}

.user-profile-widget:hover {
    background-color: var(--hover-color);
}

.user-profile-widget .profile-pic {
    margin-right: 12px;
}

.user-profile-widget .profile-pic img {
    border-radius: 50%;
}

.user-profile-widget .profile-info {
    display: flex;
    flex-direction: column;
}

.user-profile-widget .profile-info strong {
    font-size: 15px;
}

.user-profile-widget .profile-info span {
    font-size: 15px;
    color: var(--text-secondary);
}

.twitterclone-main {
    flex: 1;
    margin-left: 275px;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    background-color: var(--background-color);
}

.main-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.main-header h1 {
    font-size: 20px;
    font-weight: bold;
}

.refresh-feed {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.2s;
}

.refresh-feed:hover {
    background-color: var(--hover-color);
}

.tweet-composer {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.composer-header {
    display: flex;
    gap: 12px;
}

.user-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

#tweet-content {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    resize: none;
    min-height: 60px;
    font-family: inherit;
    line-height: 1.4;
}

#tweet-content:focus {
    outline: none;
}

#tweet-content::placeholder {
    color: var(--text-secondary);
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    margin-left: 60px;
}

.composer-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background-color: var(--hover-color);
}

.char-count {
    color: var(--text-secondary);
    margin-right: 12px;
    font-size: 14px;
}

.char-count.warning {
    color: var(--warning-color);
}

.char-count.over-limit {
    color: var(--error-color);
}

.tweet-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
}

.tweet-submit-btn:not(:disabled) {
    opacity: 1;
}

.tweet-submit-btn:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.composer-login-prompt {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.composer-login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
}

.composer-login-prompt a:hover {
    text-decoration: underline;
}

.tweets-timeline {
    border-top: 1px solid var(--border-color);
}

.tweet {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    position: relative;
}

.tweet:hover {
    background-color: var(--hover-color);
}

.tweet-avatar img {
    border-radius: 50%;
    margin-right: 12px;
    width: 48px;
    height: 48px;
}

.tweet-content {
    flex: 1;
    min-width: 0;
}

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

.tweet-author {
    font-weight: bold;
    margin-right: 4px;
    font-size: 15px;
}

.tweet-username {
    color: var(--text-secondary);
    font-size: 15px;
}

.tweet-time {
    color: var(--text-secondary);
    font-size: 15px;
}

.tweet-text {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.tweet-media {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
}

.tweet-media img {
    width: 100%;
    height: auto;
    display: block;
}

.tweet-actions {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
}

.tweet-action {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 14px;
}

.tweet-action:hover {
    background-color: rgba(29, 161, 242, 0.1);
}

.tweet-action.comment-action:hover {
    color: var(--primary-color);
}

.tweet-action.retweet-action:hover {
    color: var(--success-color);
}

.tweet-action.like-action:hover {
    color: var(--error-color);
}

.tweet-action.share-action:hover {
    color: var(--primary-color);
}

.like-action.liked {
    color: var(--error-color);
}

.retweet-action.retweeted {
    color: var(--success-color);
}

.action-count {
    font-size: 13px;
    min-width: 20px;
    text-align: center;
}

.no-tweets {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.twitterclone-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.twitterclone-message-success {
    background-color: var(--success-color);
}

.twitterclone-message-error {
    background-color: var(--error-color);
}

.twitterclone-message-warning {
    background-color: var(--warning-color);
}

.follow-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.follow-button:hover {
    background-color: var(--primary-hover);
}

.follow-button.following {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

@media (max-width: 1024px) {
    .twitterclone-sidebar {
        width: 88px;
    }
    
    .twitterclone-main {
        margin-left: 88px;
    }
    
    .nav-text {
        display: none;
    }
    
    .user-profile-widget .profile-info {
        display: none;
    }
    
    .tweet-button span {
        display: none;
    }
    
    .tweet-button::after {
        content: "✏️";
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .twitterclone-sidebar {
        display: none;
    }
    
    .twitterclone-main {
        margin-left: 0;
        border-right: none;
    }
    
    .composer-footer {
        margin-left: 0;
    }
    
    .tweet-actions {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .tweet {
        padding: 12px;
    }
    
    .tweet-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .composer-actions {
        gap: 2px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
/* v1.2 single-column adjustments */
.twitterclone-sidebar{display:none!important}.twitterclone-main{margin:0 auto!important;max-width:1200px;width:100%;padding:0 12px;border-right:none!important}.twitterclone-container{display:block}.twitterclone-singlecolumn{max-width:100%;margin:0 auto}.main-header{position:sticky;top:0;z-index:999}.tweet-button{display:none}
