/* =================================================================
   PalAI Home Screen Styles - OpenAI Blog Style
   ================================================================= */

/* Header */
.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.header-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #171717;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-theme-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-login-btn {
    background: #171717;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.header-login-btn:hover {
    background: #333;
}

/* Theme icon visibility */
.theme-icon.sun {
    display: block;
}

.theme-icon.moon {
    display: none;
}

[data-theme="dark"] .theme-icon.sun {
    display: none;
}

[data-theme="dark"] .theme-icon.moon {
    display: block;
}

/* Main Content */
.home-screen {
    min-height: 100vh;
    background: #ffffff;
}

.home-main {
    max-width: 680px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.home-content {
    text-align: left;
}

.home-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.home-title {
    font-size: 48px;
    font-weight: 600;
    color: #171717;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* CTA Buttons Group */
.home-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #171717;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.cta-primary:hover {
    background: #333;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #171717;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.cta-secondary:hover {
    color: #666;
}

/* Description */
.home-description {
    margin-bottom: 48px;
}

.home-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
}

/* Features Section */
.home-features-section {
    margin-bottom: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.features-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #171717;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

.features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #6b7280;
}

.features-list li strong {
    color: #171717;
}

/* Generic Section Styles (Methods, Limitations) */
.home-section {
    margin-bottom: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.section-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #171717;
    margin-bottom: 20px;
}

.section-content {
    margin-bottom: 20px;
}

.section-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 16px;
}

.section-content a {
    color: #171717;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-content a:hover {
    color: #6b7280;
}

/* Limitations List */
.limitations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limitations-list li {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
}

.limitations-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #171717;
    font-weight: bold;
}

.limitations-list li strong {
    color: #171717;
}

/* Footer */
.home-footer {
    text-align: center;
    padding: 32px 24px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Nav Theme Button (in chat screen) */
.nav-theme-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* =================================================================
   Dark Theme Overrides
   ================================================================= */

[data-theme="dark"] .home-screen {
    background: #0b0c14;
}

[data-theme="dark"] .home-header {
    background: rgba(11, 12, 20, 0.9);
    border-color: #374151;
}

[data-theme="dark"] .header-brand {
    color: #e5e7eb;
}

[data-theme="dark"] .header-theme-btn {
    color: #9ca3af;
}

[data-theme="dark"] .header-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .header-login-btn {
    background: #ffffff;
    color: #171717;
}

[data-theme="dark"] .header-login-btn:hover {
    background: #e5e7eb;
}

[data-theme="dark"] .home-date {
    color: #9ca3af;
}

[data-theme="dark"] .home-title {
    color: #e5e7eb;
}

[data-theme="dark"] .cta-primary {
    background: #ffffff;
    color: #171717;
}

[data-theme="dark"] .cta-primary:hover {
    background: #e5e7eb;
}

[data-theme="dark"] .cta-secondary {
    color: #e5e7eb;
}

[data-theme="dark"] .cta-secondary:hover {
    color: #9ca3af;
}

[data-theme="dark"] .home-description p {
    color: #9ca3af;
}

[data-theme="dark"] .home-features-section,
[data-theme="dark"] .home-section {
    border-color: #374151;
}

[data-theme="dark"] .features-heading,
[data-theme="dark"] .section-heading {
    color: #e5e7eb;
}

[data-theme="dark"] .features-list li {
    color: #9ca3af;
}

[data-theme="dark"] .features-list li svg {
    color: #6b7280;
}

[data-theme="dark"] .features-list li strong {
    color: #e5e7eb;
}

[data-theme="dark"] .section-content p {
    color: #9ca3af;
}

[data-theme="dark"] .section-content a {
    color: #e5e7eb;
}

[data-theme="dark"] .section-content a:hover {
    color: #9ca3af;
}

[data-theme="dark"] .limitations-list li {
    color: #9ca3af;
}

[data-theme="dark"] .limitations-list li::before {
    color: #e5e7eb;
}

[data-theme="dark"] .limitations-list li strong {
    color: #e5e7eb;
}

[data-theme="dark"] .home-footer {
    border-color: #374151;
    color: #6b7280;
}

[data-theme="dark"] .nav-theme-btn {
    color: #9ca3af;
}

[data-theme="dark"] .nav-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =================================================================
   User Profile Dropdown - Fixed spacing
   ================================================================= */

.user-profile {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    min-width: 260px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-info {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.9rem;
}

.profile-item strong {
    color: #9ca3af;
    font-weight: 500;
}

.profile-item span:not(strong) {
    color: #ffffff;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.logout-btn-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn-dropdown:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Light theme dropdown */
[data-theme="light"] .profile-dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .profile-info {
    border-color: #e5e7eb;
}

[data-theme="light"] .profile-item strong {
    color: #6b7280;
}

[data-theme="light"] .profile-item span:not(strong) {
    color: #171717;
}

[data-theme="light"] .logout-btn-dropdown {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #171717;
}

[data-theme="light"] .logout-btn-dropdown:hover {
    background: #e5e7eb;
}