/*
Theme Name: StickerPagesTheme
Author: Thilina
Version: 2.0
*/

/* GLOBAL */
body {
    background: #f4f7f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    color: #1a1a1a;
}

.site-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding-bottom: 48px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.category-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.category-header .view-all-link {
    font-size: 14px;
    margin-left: auto;
    white-space: nowrap;
}

/* HEADER */
.site-header {
    text-align: center;
    padding: 48px 0 24px;
}

.site-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: #111;
    letter-spacing: -0.03em;
}

.front-hero {
    background: linear-gradient(135deg, #ecf8ed 0%, #ffffff 100%);
    border: 1px solid rgba(43, 138, 62, 0.18);
    border-radius: 30px;
    padding: 16px 14px; /* reduced from 34/28 to half-size */
    margin-bottom: 16px;
    box-shadow: 0 12px 26px rgba(43, 138, 62, 0.08);
}

.hero-copy {
    max-width: 640px;
    margin: 0 auto;
}

.hero-copy .eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2b8a3e;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h2 {
    font-size: 1.6rem; /* reduced from 3rem to approximately half visual size */
    line-height: 1.1;
    margin: 0 0 12px;
}

.hero-copy p {
    font-size: 1.05rem;
    margin: 0;
    color: #4c4c4c;
}

.site-header p {
    margin: 12px auto 0;
    max-width: 760px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

/* SEARCH BAR */
.search-bar {
    text-align: center;
    margin: 30px 0 40px;
}

.halloween-section {
    margin-bottom: 26px;
}

.halloween-section .section-heading {
    max-width: 840px;
    margin: 0 auto 18px;
    text-align: center;
}

.halloween-section .section-heading h2 {
    margin-bottom: 10px;
}

.halloween-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.halloween-pack {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(43, 138, 62, 0.12);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.halloween-pack:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.halloween-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
}

@media (max-width: 980px) {
    .halloween-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .halloween-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .halloween-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Subtle Halloween vibe: repeating transparent icons overlay */
.front-hero,
.halloween-section {
    position: relative;
    overflow: hidden;
}

.front-hero::before,
.halloween-section::before {
    content: "";
    position: absolute;
    inset: 0;
    /* tiny SVG pattern with webs/ghost/spider (very low opacity) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g stroke='%23f39c12' stroke-opacity='0.07' stroke-width='1' fill='none'><path d='M80 0 L80 160 M0 80 L160 80 M20 20 L140 140 M140 20 L20 140'/></g><g fill='%23000000' opacity='0.04'><circle cx='30' cy='130' r='6'/><path d='M128 40 c-6-10 -18-10 -24 0 c-6 10 0 22 12 26 c12-4 18-16 12-26z'/></g><g fill='%23ffffff' opacity='0.035'><path d='M110 30 q10 20 -10 30 q-20 -10 -10 -30 z'/></g></svg>");
    background-repeat: repeat;
    background-size: 160px;
    pointer-events: none;
    opacity: 0.18;
    z-index: 0;
}

.front-hero .hero-copy,
.halloween-section .section-heading {
    position: relative;
    z-index: 1;
}

/* small decorative ghost icon next to Halloween section heading */
.halloween-section .section-heading h2::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' opacity='0.9' d='M12 2c-4 0-6 3-6 6v6c0 3 2 6 6 6s6-3 6-6V8c0-3-2-6-6-6zM9 10a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm6 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.search-bar form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.search-bar input[type="search"] {
    border: none;
    outline: none;
    font-size: 15px;
    width: 260px;
    max-width: 100%;
}

.search-bar button {
    background: #2b8a3e;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-bar button:hover {
    background: #246f33;
}

/* GALLERY GRID */
.site-main .gallery {
    display: grid !important;
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    align-items: stretch;
}

.site-main .gallery > a {
    display: block;
    min-width: 0;
}

.site-main .gallery .gallery-card {
    min-height: 0;
}

@media (max-width: 980px) {
    .site-main .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

@media (max-width: 700px) {
    .site-main .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100%;
    }

    .site-main .gallery > a,
    .gallery-card,
    .gallery-card img {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

    .gallery-card {
        padding: 6px;
    }

    .gallery-card img {
        border-radius: 16px;
    }
}

@media (max-width: 520px) {
    .site-main .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100%;
    }

    .site-main .gallery > a,
    .gallery-card,
    .gallery-card img {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
    }

    .gallery-card {
        padding: 4px;
    }

    .gallery-card img {
        border-radius: 12px;
    }
}

.gallery-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcf7 100%);
    padding: 4px;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    text-align: center;
    border: 1px solid rgba(43, 138, 62, 0.12);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.gallery-card a {
    color: inherit;
    text-decoration: none;
}

.gallery-card img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    background: #eef7ed;
    object-fit: contain;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
    opacity: 1;
    transform: none;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card img.loaded {
    opacity: 1;
    transform: none;
}

.gallery-card p {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.01em;
}

.gallery-card .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    font-size: 13px;
    color: #2b8a3e;
    background: rgba(43, 138, 62, 0.08);
    border-radius: 999px;
    padding: 6px 14px;
}

/* CATEGORY TITLES */
h2, h3 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 16px;
}

.category-block {
    margin: 14px 0;
    padding: 14px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(43, 138, 62, 0.08);
}

.category-header {
    margin-bottom: 10px;
}

.category-header h3 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.category-header .view-all-link {
    font-size: 14px;
    color: #2b8a3e;
    font-weight: 600;
    white-space: nowrap;
}

.debug-info {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.view-all-link {
    color: #2b8a3e;
    text-decoration: none;
    font-weight: 600;
}

/* SINGLE STICKER PAGE */
.single-stick-main img {
    max-width: 360px;
    display: block;
    margin: 0 auto 24px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.download-btn {
    background: #2b8a3e;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    margin: 0 auto 20px;
}

.download-btn:hover { background: #246f33; }

.whatsapp-share {
    display: none;
    background: #25D366;
    color: white;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .whatsapp-share { display: inline-block; }
}

.instructions {
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: #444;
}

/* BREADCRUMBS */
.breadcrumbs {
    text-align: left;
    font-size: 14px;
    margin: 12px 0 18px;
    color: #666;
}
.breadcrumbs a { color: #2b8a3e; text-decoration: none; }
.breadcrumbs span { color: #444; }

/* PAGINATION */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
margin: 0;
padding: 8px 12px;
background: #fff;
border-radius: 8px;
text-decoration: none;
color: #333;
border: 1px solid #eee;
line-height: 1.2;
}

.site-footer {
border-top: 1px solid rgba(0,0,0,0.08);
padding: 24px 0 16px;
margin-top: 32px;
text-align: center;
background: #fff;
position: relative;
z-index: 1;
}

.footer-links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 16px;
margin-bottom: 10px;
}

.footer-links a {
color: #2b8a3e;
text-decoration: none;
font-weight: 600;
}

.footer-links a:hover {
text-decoration: underline;
}

.footer-copy {
color: #666;
font-size: 14px;
}

.page-panel {
max-width: 860px;
margin: 0 auto;
padding: 32px 24px;
background: #fff;
border-radius: 28px;
box-shadow: 0 16px 40px rgba(0,0,0,0.06);
border: 1px solid rgba(43,138,62,0.1);
}

.page-panel h2 {
text-align: center;
margin-bottom: 18px;
}

.page-panel p,
.page-panel ul {
color: #444;
line-height: 1.8;
font-size: 16px;
}

.page-panel ul {
padding-left: 22px;
}

.page-panel ul li {
margin-bottom: 10px;
}

.notice-info {
margin-top: 16px;
padding: 14px 16px;
background: #eaf7ff;
border: 1px solid #c9e6fd;
border-radius: 16px;
color: #1a5b7b;
max-width: 760px;
margin-left: auto;
margin-right: auto;
font-size: 15px;
line-height: 1.6;
}
