/*
Theme Name: Dear Lottery PWA Theme
Theme URI: https://example.com/
Author: OpenAI
Description: Minimal WordPress shell theme for the Dear Lottery PWA storefront. The front page renders without theme navigation, header, footer, sidebar, or layout interference while preserving WordPress/WooCommerce hooks.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: dear-lottery-pwa-theme
*/

:root {
    color-scheme: light;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    background: #f4f7fb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* The PWA homepage gets a completely clean shell. */
body.home,
body.front-page,
body.page-template-default.home {
    overflow-x: hidden;
}

.dlpwa-front-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.dlpwa-front-shell > .dlpwa-page-content,
.dlpwa-front-shell .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Remove common classic/block content spacing only from the PWA shell. */
.dlpwa-front-shell p:first-child,
.dlpwa-front-shell p:last-child {
    margin-top: 0;
    margin-bottom: 0;
}

/* Simple fallback styling for legal/info pages. */
.dlpwa-standard-page {
    width: min(920px, calc(100% - 32px));
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08);
}

.dlpwa-standard-page h1 {
    margin-top: 0;
}

.dlpwa-standard-page a {
    color: #0b63ce;
}

@media (max-width: 640px) {
    .dlpwa-standard-page {
        width: calc(100% - 20px);
        margin: 20px auto;
        padding: 20px;
        border-radius: 10px;
    }
}
