/* Landing Page Specific Styles */

/* Split Layout Container */
.landing-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.landing-container {
    display: flex;
    flex: 1;
    overflow: visible;
    position: relative;
}

/* Left Side: SEO Content */
.landing-content {
    position: fixed;
    top: 60px;
    left: 0;
    width: 30%;
    height: calc(100vh - 60px - 72px);
    background: transparent;
    overflow-y: auto;
    z-index: 100;
    pointer-events: none;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.landing-content:hover {
    scrollbar-color: rgba(40, 67, 255, 0.3) transparent;
}

.landing-content::-webkit-scrollbar {
    width: 8px;
}

.landing-content::-webkit-scrollbar-track {
    background: transparent;
}

.landing-content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

.landing-content:hover::-webkit-scrollbar-thumb {
    background: rgba(40, 67, 255, 0.3);
}

.landing-content::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 67, 255, 0.5);
}

.landing-content * {
    pointer-events: auto;
}

.content-wrapper {
    padding: 40px;
    padding-bottom: 80px;
    max-width: 600px;
    pointer-events: none;
}

.content-wrapper * {
    pointer-events: auto;
}

.landing-title {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #2843FF;
    margin-bottom: 16px;
    line-height: 1.2;
}

.landing-description {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #2843FF;
    line-height: 1.6;
    margin-bottom: 32px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #2843FF;
    margin-bottom: 16px;
}

.content-section h3 {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2843FF;
    margin-bottom: 8px;
}

.content-section p {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2843FF;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Lists */
.instruction-list,
.tip-guide {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li,
.tip-guide li {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2843FF;
    line-height: 1.8;
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.instruction-list li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    background: #2843FF;
    color: #EDFF28;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.instruction-list {
    counter-reset: item;
}

.tip-guide li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #2843FF;
    font-weight: bold;
    font-size: 20px;
}

.tip-guide li strong {
    color: #2843FF;
    font-weight: 800;
}

/* Tip Reference Table */
.tip-reference {
    background: rgba(40, 67, 255, 0.1);
    border: 1px solid rgba(40, 67, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.tip-ref-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(40, 67, 255, 0.2);
}

.tip-ref-item:last-child {
    border-bottom: none;
}

.bill-amount {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #2843FF;
}

.tip-amounts {
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2843FF;
}

/* FAQ */
.faq-item {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(40, 67, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #2843FF;
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* Related Tools */
.related-tools {
    background: rgba(40, 67, 255, 0.1);
    border: 1px solid rgba(40, 67, 255, 0.3);
    padding: 24px;
    border-radius: 8px;
}

.tool-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-links li {
    margin: 0;
}

.tool-links a {
    display: inline-block;
    padding: 10px 20px;
    background: #333;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tool-links a:hover {
    background: #FF6928;
    transform: translateY(-2px);
}

/* Right Side: Calculator App */
.landing-app {
    width: 70%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.landing-page .app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Workspace covers entire app area for sticky notes */
.landing-page .workspace {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 72px;
    background: transparent;
    overflow: visible;
    pointer-events: none;
    z-index: 200;
}

.landing-page .workspace * {
    pointer-events: auto;
}

/* Spacer pushes calculator to bottom-right */
.landing-page .workspace-spacer {
    flex: 1;
    background: transparent;
}

/* Calculator positioned bottom-right like main page */
.landing-page .calculator-section {
    width: 280px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 150 !important;
    margin: 0 16px 16px 0 !important;
}

/* Quick Tip Buttons Row */
.quick-tip-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.btn-tip {
    background: linear-gradient(145deg, #475AE3, #3A4BC7);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 
        0 4px 0 rgba(0, 0, 0, 0.3),
        0 6px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-tip:hover {
    background: linear-gradient(145deg, #5568E8, #475AE3);
    transform: translateY(-1px);
}

.btn-tip:active {
    transform: translateY(2px);
    box-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Move pencil button to bottom-left */
.landing-page .btn-drawing-mode {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    z-index: 300 !important;
}

/* Fix settings button visibility */
.landing-page .settings-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
}

.landing-page .settings-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: #A2A2A2 !important;
}

.landing-page .settings-btn:hover svg {
    fill: #ffffff !important;
    transform: rotate(45deg);
}

/* Footer */
.landing-footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 24px 40px;
    flex-shrink: 0;
}

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

.footer-content p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #FF6928;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .landing-container {
        flex-direction: column;
    }
    
    .landing-content {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        max-height: 35vh;
        overflow-y: auto;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .landing-title {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .landing-description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .content-section {
        margin-bottom: 20px;
    }
    
    .content-section h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .content-section p,
    .instruction-list li,
    .tip-guide li {
        font-size: 13px;
    }
    
    .landing-app {
        width: 100%;
        flex: 1;
        min-height: 0;
    }
    
    .landing-page .calculator-section {
        width: 90% !important;
        max-width: 320px !important;
        margin: 0 auto 12px auto !important;
        align-self: center !important;
    }
    
    .landing-page .btn-drawing-mode {
        bottom: 12px !important;
        left: 12px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .landing-footer {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .landing-content {
        max-height: 30vh;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .landing-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .landing-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .content-section {
        margin-bottom: 16px;
    }
    
    .content-section h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .content-section h3 {
        font-size: 14px;
    }
    
    .content-section p,
    .instruction-list li,
    .tip-guide li {
        font-size: 12px;
    }
    
    .tip-reference {
        padding: 12px;
    }
    
    .tip-ref-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .faq-item {
        padding: 12px;
    }
    
    .related-tools {
        padding: 16px;
    }
    
    .landing-page .calculator-section {
        width: 95% !important;
        max-width: 300px !important;
        transform: none !important;
    }
    
    .landing-page .btn-drawing-mode {
        width: 36px !important;
        height: 36px !important;
    }
    
    .landing-page .btn-drawing-mode svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Scrollbar Styling for Content Area */
.landing-content::-webkit-scrollbar {
    width: 8px;
}

.landing-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.landing-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.landing-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
