/* Post Matrix Scan - Shared Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Page-specific backgrounds */
body.page-home {
    background: linear-gradient(135deg, #FFCC00 0%, #E6B400 100%);
}

body.page-privacy {
    background: #f5f5f5;
}

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

.container.narrow {
    max-width: 700px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h1.privacy-title {
    font-size: 2rem;
    color: #003366;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.last-updated {
    color: #666;
    font-size: 0.9rem;
}

/* App Icon */
.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: linear-gradient(180deg, #FFCC00 0%, #E6B400 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

/* Data Matrix image in icon */
.app-icon .icon-matrix {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Crosshair/scanner frame */
.app-icon .crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
}

.app-icon .crosshair::before,
.app-icon .crosshair::after {
    content: '';
    position: absolute;
    background: #003366;
}

/* Corner brackets */
.app-icon .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #003366;
}

.app-icon .corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.app-icon .corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.app-icon .corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.app-icon .corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* App Store Badge */
.app-store-badge {
    margin-top: 20px;
}

.app-store-badge img {
    height: 50px;
}

/* Language Switch */
.lang-switch {
    margin-top: 10px;
}

.lang-switch a {
    color: #003366;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

.lang-switch a:hover {
    background: #e8e8e8;
}

.lang-switch a.active {
    background: #003366;
    color: white;
}

/* Sections */
section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

section.compact {
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section.summary {
    background: #FFCC00;
    color: #1a1a1a;
}

section.summary h2 {
    color: #1a1a1a;
}

/* Headings */
h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #003366;
}

h2.compact {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

h2 a.anchor {
    color: inherit;
    text-decoration: none;
}

h2 a.anchor:hover {
    text-decoration: underline;
}

h2 a.anchor::before {
    content: '#';
    opacity: 0;
    margin-right: 5px;
    transition: opacity 0.2s;
}

h2:hover a.anchor::before {
    opacity: 0.5;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul.features-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: 12px;
}

ul.features-list li {
    padding: 6px 0 6px 24px;
    position: relative;
}

ul.features-list li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #FFCC00;
    border-radius: 50%;
}

ul.features-list ul {
    list-style: none;
    margin-left: 0;
    margin-top: 6px;
}

ul.features-list ul li::before {
    width: 6px;
    height: 6px;
    background: #FFCC00;
    top: 15px;
}

ul.indented {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 12px;
}

ul.indented li {
    padding: 6px 0;
    padding-left: 0;
    margin-bottom: 0;
}

ul.indented li::before {
    display: none;
}

li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #FFCC00;
    font-weight: bold;
}

/* Paragraphs */
p {
    margin-bottom: 12px;
}

/* Links */
a {
    color: #003366;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #003366;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer.faded {
    opacity: 0.7;
}

footer a {
    color: #003366;
}

footer.privacy {
    color: #666;
}

/* Disclaimer */
.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 15px;
}

/* CSS-only slideshow */
.slideshow {
    position: relative;
    overflow: hidden;
}

.slideshow input[type="radio"] {
    display: none;
}

.slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slide {
    min-width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

/* Slide positions */
#slide1:checked ~ .slides {
    transform: translateX(0%);
}

#slide2:checked ~ .slides {
    transform: translateX(-100%);
}

#slide3:checked ~ .slides {
    transform: translateX(-200%);
}

.slide .barcode-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    background: white;
    padding: 10px;
    border-radius: 8px;
}

.slide .barcode-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide .label {
    font-weight: 600;
    color: #003366;
    margin-bottom: 10px;
    display: block;
    font-size: 1.1rem;
}

.slide .hex {
    font-family: monospace;
    font-size: 0.75rem;
    color: #666;
    word-break: break-all;
    display: block;
    background: #e8e8e8;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.copy-hint {
    font-size: 0.75rem;
    color: #999;
}

/* Navigation dots */
.slide-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.slide-nav label {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.slide-nav label:hover {
    background: #999;
}

#slide1:checked ~ .slide-nav label[for="slide1"],
#slide2:checked ~ .slide-nav label[for="slide2"],
#slide3:checked ~ .slide-nav label[for="slide3"] {
    background: #003366;
}

/* Navigation arrows */
.slide-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 5px;
}

.slide-arrows .arrow-left,
.slide-arrows .arrow-right {
    pointer-events: auto;
}

.slide-arrows label {
    width: 36px;
    height: 36px;
    background: rgba(0, 51, 102, 0.8);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.slide-arrows label:hover {
    background: rgba(0, 51, 102, 1);
}

/* Show appropriate arrows - slide 1: only next */
#slide1:checked ~ .slide-arrows .next1 {
    display: flex;
}

/* slide 2: both prev and next */
#slide2:checked ~ .slide-arrows .prev2,
#slide2:checked ~ .slide-arrows .next2 {
    display: flex;
}

/* slide 3: only prev */
#slide3:checked ~ .slide-arrows .prev3 {
    display: flex;
}
