/* New Home Page Styles - Uses Shared Theme System */
/* Based on mockup-6.1-light-status-style-centered.html */

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, 
        var(--primary-gradient-start) 0%, 
        var(--primary-gradient-end) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Header with logo and title - EXACT copy from status page */
.header {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.logo {
    height: 37px;
    width: 80px;
}

.site-title {
    font-size: 36px;
    color: var(--text-header);
    font-weight: 300;
    margin: 0;
    text-align: start;
    justify-self: center;
}

/* Main functionality card - only this section is in card style */
.main-card {
    background: var(--bg-card);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.welcome-message {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 60px;
    font-weight: 600;
}

.welcome-subtitle {
    font-size: var(--font-size-info);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
    display: none; /* Hide the subtitle as requested */
}

/* Action buttons layout */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--btn-border-radius);
    font-size: var(--font-size-btn);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-white);
}

.btn-signup {
    background: linear-gradient(135deg, var(--btn-warning-start) 0%, var(--btn-warning-end) 100%);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

.btn-speed {
    background: linear-gradient(135deg, var(--btn-primary-start) 0%, var(--btn-primary-end) 100%);
}

.btn-speed:hover {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
}

/* Helper links section */
.helper-section {
    border-top: 1px solid rgba(45, 55, 72, 0.2);
    padding-top: 25px;
}

/* Theme-specific border colors */
body.theme-light .helper-section {
    border-top-color: rgba(45, 55, 72, 0.2);
}

body.theme-dark .helper-section {
    border-top-color: rgba(255, 255, 255, 0.2);
}

body.theme-purple .helper-section {
    border-top-color: rgba(255, 255, 255, 0.3);
}

body.theme-blue .helper-section {
    border-top-color: rgba(255, 255, 255, 0.3);
}

body.theme-green .helper-section {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.helper-title {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.helper-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.helper-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-small);
    padding: 10px 15px;
    border-radius: var(--info-border-radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.helper-link:hover {
    background: var(--primary-gradient-start);
    color: var(--text-primary);
    border-color: var(--primary-gradient-start);
    transform: translateY(-1px);
}

/* Footer - same structure as dealer status page */
.footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-white-transparent);
    font-size: var(--font-size-footer);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-item {
    color: var(--text-white-transparent);
    font-size: var(--font-size-footer);
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-link {
    color: var(--text-white-transparent);
    text-decoration: none;
    font-size: var(--font-size-footer);
    transition: opacity 0.3s ease;
}

.about-link:hover {
    opacity: 0.8;
}

.version-info {
    color: var(--text-white-transparent);
    font-size: var(--font-size-footer);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.version-info:hover {
    opacity: 0.8;
}

/* Theme controls - positioned like in dealer status page */
.theme-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-controls span {
    color: var(--text-white-transparent);
    font-size: var(--font-size-footer);
    font-weight: 400;
}

.theme-selector {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white-transparent);
    font-size: var(--font-size-footer);
    cursor: pointer;
}

.theme-selector:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

/* Theme selector option styling - ensures visibility in all themes */
.theme-selector option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 5px;
}

/* Design toggle styling - positioned at bottom of window */
.design-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}

.design-toggle-link {
    color: var(--text-white-transparent);
    text-decoration: none;
    font-size: var(--font-size-tiny);
    transition: all 0.3s ease;
    display: inline-block;
}

.design-toggle-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .site-title {
        font-size: var(--font-size-header-mobile);
    }

    .logo {
        height: var(--logo-size-mobile);
    }

    .main-card {
        padding: 30px 25px;
    }

    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 10px;
    }

    .theme-controls {
        justify-content: center;
    }
}