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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Homepage - Dark Theme (X.com style) */
body.homepage {
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.homepage-header {
    background: transparent;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
    box-shadow: none;
    border-radius: 0;
}

.homepage-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage-header .logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.homepage-header .header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-heading {
    font-size: 64px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subheading {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-cta {
    margin-bottom: 32px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 24px;
}

.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1d9bf0;
}

.hero-social svg {
    color: #1d9bf0;
}

.social-link {
    color: #1d9bf0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.social-link:hover {
    color: #1a8cd8;
    text-decoration: underline;
}

.features {
    padding: 100px 20px;
    background: #000000;
}

.features-heading {
    font-size: 48px;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(22, 24, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(22, 24, 28, 1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: #1d9bf0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.homepage-footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    margin-top: auto;
}

.homepage-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-heading {
        font-size: 40px;
    }

    .hero-subheading {
        font-size: 18px;
    }

    .features-heading {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Header */
header {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    color: #1da1f2;
}

header h1 a {
    color: #1da1f2;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

nav a {
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background 0.2s;
}

nav a:hover {
    background: #f0f0f0;
}

nav a.active {
    background: #1da1f2;
    color: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-primary {
    background: #1da1f2;
    color: white;
}

.btn-primary:hover {
    background: #1a91da;
}

.btn-secondary {
    background: #657786;
    color: white;
}

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

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* Login */
.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.login-box h1 {
    margin-bottom: 30px;
    color: #1da1f2;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

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

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Compose */
#compose-area {
    margin: 20px 0;
}

.post-card {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-card textarea {
    width: 100%;
    min-height: 120px;
    font-size: 16px;
    line-height: 1.5;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.post-number {
    font-weight: 500;
    color: #666;
}

.char-count {
    font-size: 12px;
    color: #666;
}

.char-count.warning {
    color: #ff6b35;
}

.char-count.error {
    color: #e0245e;
}

.add-post-btn {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.add-post-btn:hover {
    background: #1a91da;
}

/* Dashboard */
.threads-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.threads-table thead {
    background: #f7f9fa;
}

.threads-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e1e8ed;
}

.threads-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.threads-table tr:hover {
    background: #f7f9fa;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft {
    background: #e1e8ed;
    color: #536471;
}

.status-scheduled {
    background: #fff4e6;
    color: #cc8500;
}

.status-publishing {
    background: #e6f3ff;
    color: #1da1f2;
}

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

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state p {
    margin-bottom: 20px;
    color: #666;
    font-size: 18px;
}

/* Error/Success messages */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Read-only mode */
.read-only {
    opacity: 0.6;
    pointer-events: none;
}

.read-only textarea,
.read-only input,
.read-only select,
.read-only button {
    background: #f5f5f5;
    cursor: not-allowed;
}

