/*
    OzeArt — shared stylesheet
    Web site by: Colin Dixon (https://art.oze.au)
    Version: 1.10.0
    Date: 20 Jul 2026 | 4:24 PM AEST
*/

:root {
    --glass-bg-dark: rgba(10, 25, 41, 0.28);
    --glass-bg-light: rgba(255, 255, 255, 0.38);
    --glass-border-dark: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(0, 0, 0, 0.2);
    --text-dark: #e5e7eb;
    --text-light: #111827;
    --link-dark: #60a5fa;
    --link-light: #2563eb;
    --accent: #18b6e6;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-image: url('../images/background-pano.jpg'); background-size: cover; background-position: center; background-attachment: fixed;
    transition: color 0.3s;
}
body.light-theme { color: var(--text-light); }
body.dark-theme { color: var(--text-dark); }
.page-wrapper { max-width: 960px; margin: 0 auto; padding: 2rem 1rem; position: relative; }
.logo-container { text-align: center; margin-bottom: 2rem; position: relative; z-index: 3; }
.logo-container img { max-width: 200px; height: auto; }

/* Glass card with V2 bevel + depth */
.card-style {
    background: var(--glass-bg-dark); border: 1px solid var(--glass-border-dark);
    backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-radius: 1rem; padding: 2rem; margin-bottom: 2rem;
    position: relative; z-index: 2;
    box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.35);
}
.light-theme .card-style { background: var(--glass-bg-light); border: 1px solid var(--glass-border-light); box-shadow: 0 18px 40px -18px rgba(10,25,41,0.3), inset 0 1px 0 rgba(255,255,255,0.7); }
header.card-style { min-height: 220px; }
.header-text { max-width: 60%; }
#hero-portrait { display: none; position: absolute; top: -6rem; right: -4rem; width: 420px; z-index: 1; pointer-events: none; }

h1, h2, h3, h4 { margin-top: 0; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; color: #cbd5e1; }
.light-theme h2 { color: #4b5563; }
h3 { font-size: 1.25rem; border-bottom: 2px solid var(--glass-border-dark); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.light-theme h3 { border-bottom-color: var(--glass-border-light); }
h4 { font-size: 1.2rem; }
p { line-height: 1.6; }
/* in-content links: accent, no blue underline */
.card-style p a:not(.btn), .card-style li a:not(.btn) { color: var(--accent); text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.card-style p a:not(.btn):hover, .card-style li a:not(.btn):hover { opacity: 0.75; }
.light-theme .card-style p a:not(.btn), .light-theme .card-style li a:not(.btn) { color: var(--link-light); }

/* Link cards — 3D lift on hover */
.link-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
a.link-card { display: block; text-decoration: none; color: inherit; padding: 1.5rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
a.link-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 44px -18px rgba(0,0,0,0.6), 0 -6px 26px -10px rgba(24,182,230,0.35), inset 0 1px 0 rgba(255,255,255,0.4); }
a.link-card h4 { margin: 0 0 0.5rem 0; color: var(--accent); }
.light-theme a.link-card h4 { color: var(--link-light); }

/* Shop hub — per-artwork cards (v1.10) */
.shop-subheading { color: var(--accent); margin: 2rem 0 0.5rem 0; font-size: 1.15rem; }
.light-theme .shop-subheading { color: var(--link-light); }
.artwork-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .artwork-grid { grid-template-columns: 1fr 1fr; } }
.artwork-card { padding: 0; overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.artwork-card:hover { border-color: var(--accent); }
.artwork-thumb { width: 100%; height: auto; display: block; aspect-ratio: 3 / 1; object-fit: cover; }
.artwork-body { padding: 1.25rem 1.5rem 1.5rem; }
.artwork-body h4 { margin: 0 0 0.4rem 0; color: var(--accent); }
.light-theme .artwork-body h4 { color: var(--link-light); }
.artwork-body p { margin: 0 0 1rem 0; font-size: 0.95rem; opacity: 0.9; }
.buy-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.buy-btn { font-size: 0.85rem; padding: 8px 12px; }
.btn-disabled { background-color: #6b7280; opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.link-card-disabled { padding: 1.5rem; opacity: 0.6; }
.link-card-disabled h4 { margin: 0 0 0.5rem 0; color: var(--accent); }
.light-theme .link-card-disabled h4 { color: var(--link-light); }
/* Deep-link arrival highlight (gallery "Shop This Print" → shop.html#id) */
.hash-target { animation: hashPulse 2.4s var(--ease) 1; border-color: var(--accent) !important; }
@keyframes hashPulse {
  0% { box-shadow: 0 0 0 0 rgba(24, 182, 230, 0.65); }
  70% { box-shadow: 0 0 0 14px rgba(24, 182, 230, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 182, 230, 0); }
}

.video-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; border-radius: 0.5rem; margin-bottom: 1rem; }
.video-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Gallery */
.panorama-gallery a { display: block; margin-bottom: 1.5rem; border-radius: 0.5rem; overflow: hidden; transition: transform 0.25s var(--ease); cursor: pointer; }
.panorama-gallery a:hover { transform: scale(1.02); }
.panorama-gallery img { width: 100%; height: auto; display: block; }

/* Footer */
footer { text-align: center; }
footer a { color: inherit; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
footer a:hover { opacity: 1; text-decoration: none; }
.footer-contact-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; opacity: 0.8; }
.footer-links span.separator { display: inline-block; padding: 0 0.4rem; opacity: 0.5; }
/* standard footer bottom: copyright + oze.au logo + live build stamp */
.footer-bottom { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--glass-border-dark); text-align: center; }
.light-theme .footer-bottom { border-top-color: var(--glass-border-light); }
.footer-bottom .copyright { font-size: 0.9rem; opacity: 0.78; display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.footer-logo-link { display: inline-flex; line-height: 0; }
.footer-logo { height: 22px; width: auto; opacity: 0.85; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.footer-logo-link:hover .footer-logo { opacity: 1; transform: translateY(-2px); }
.build-stamp { margin-top: 0.45rem; font-size: 0.72rem; letter-spacing: 0.05em; opacity: 0.45; font-variant-numeric: tabular-nums; }

/* Modals */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); }
.modal-content { position: relative; margin: 10% auto; padding: 0; width: 90%; max-width: 500px; }
.modal-header { padding: 1rem 2rem; }
.modal-body { padding: 2rem; }
.modal-footer { padding: 1rem 2rem; display: flex; justify-content: flex-end; gap: 1rem; }
.modal-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #4b5563; border-radius: 4px; box-sizing: border-box; margin-top: 6px; margin-bottom: 16px; background-color: rgba(0,0,0,0.2); color: white; }
.light-theme input, .light-theme textarea { background-color: rgba(255,255,255,0.5); color: black; border-color: #9ca3af; }
pre { white-space: pre-wrap; word-wrap: break-word; background: rgba(0,0,0,0.2); padding: 1rem; border-radius: 8px; font-family: monospace; }
.light-theme pre { background: rgba(255,255,255,0.5); }

/* Buttons + floating */
.btn { background-color: var(--link-light); color: white; padding: 12px 18px; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.2s, transform 0.2s var(--ease); }
.btn:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-secondary { background-color: #6b7280; }
.floating-btn { position: fixed; z-index: 1001; }
#theme-toggle { top: 1rem; right: 1rem; }
#calendly-float { top: 1rem; left: 1rem; }
#enquiry-float { bottom: 1rem; left: 1rem; }
.icon { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2; }
.dark-theme .icon-sun, .dark-theme .light-text, .light-theme .icon-moon, .light-theme .dark-text { display: none; }

/* Lightbox */
.lightbox { display: none; position: fixed; z-index: 10000; padding: 60px 1rem 1rem 1rem; box-sizing: border-box; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: var(--glass-bg-dark); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.light-theme .lightbox { background-color: var(--glass-bg-light); }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 80%; animation-name: zoom; animation-duration: 0.4s; }
@keyframes zoom { from { transform: scale(0); } to { transform: scale(1); } }
.lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.light-theme .lightbox-close { color: #333; }
.lightbox-caption-container { margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 10px 0; height: 150px; }
.light-theme .lightbox-caption-container { color: var(--text-light); }

@media (min-width: 1024px) { #hero-portrait { display: block; } }
@media (max-width: 768px) {
    .header-text { max-width: 100%; }
    h1 { font-size: 2rem; } h2 { font-size: 1.25rem; }
    .floating-btn-text { display: none; }
    #calendly-float, #enquiry-float, #theme-toggle { padding: 12px; }
    #calendly-float::before { content: "📅"; font-size: 1.5rem; }
    #enquiry-float::before { content: "📧"; font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
