/*
Theme Name: EasyRangoliKolam
Theme URI: https://easyrangolikolam.com
Author: EasyRangoliKolam
Description: The EasyRangoliKolam affiliate deals theme, with a dedicated Kolam Videos section. Built from the approved design (plum/gold/cream palette, Playfair Display + Work Sans).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private / Unlicensed
Text Domain: easyrangolikolam
*/

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #FBF7F2; font-family: 'Work Sans', sans-serif; }
a { color: #7A4E8C; text-decoration: none; }
a:hover { color: #5E3B70; }
img { max-width: 100%; display: block; }

.announcement-bar { background: #2E2A2D; color: #F3E6DE; text-align: center; padding: 8px 16px; font-family: 'Work Sans', sans-serif; font-size: 12.5px; letter-spacing: 0.02em; }

.nav-link { color: #4A4448; font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 500; }
.nav-link:hover { color: #7A4E8C; }
.nav-link.is-active { color: #7A4E8C; }

.chip { font-family: 'Work Sans', sans-serif; font-size: 12.5px; font-weight: 600; color: #5B5458; background: #FFFDFB; border: 1px solid #ECE1D8; border-radius: 16px; padding: 7px 14px; white-space: nowrap; flex-shrink: 0; display: inline-block; }
.chip.is-active { background: #7A4E8C; color: #FFFDFB; border-color: #7A4E8C; }
.chip-kolam { background: #C9A24B !important; color: #2E2A2D !important; border-color: #C9A24B !important; }

.cta { display: block; text-align: center; background: #7A4E8C; color: #FFFDFB; border-radius: 6px; padding: 12px; font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 700; border: none; width: 100%; cursor: pointer; }
.cta:hover { background: #5E3B70; color: #FFFDFB; }
.badge { display: inline-block; font-family: 'Work Sans', sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }

@keyframes flipIn3D { from { transform: perspective(1000px) rotateX(-24deg) scale(0.95); opacity: 0; } to { transform: perspective(1000px) rotateX(0deg) scale(1); opacity: 1; } }
.card-3d { box-shadow: 0 1px 2px rgba(46,42,45,0.05), 0 8px 18px rgba(122,78,140,0.12); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-3d:hover { box-shadow: 0 6px 14px rgba(46,42,45,0.08), 0 20px 32px rgba(122,78,140,0.22); }
.card-3d:not(.tilt-card):hover { transform: perspective(600px) rotateX(4deg) translateY(-5px); }
.tilt-card { transform: perspective(800px) rotateX(0deg) rotateY(0deg); transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; will-change: transform; }
.popup-sheet { animation: flipIn3D 0.35s cubic-bezier(0.22, 1, 0.36, 1); transform-origin: center bottom; }

.site-header { position: sticky; top: 0; z-index: 20; background: #FFFDFB; border-bottom: 1px solid #ECE1D8; }
.header-row { max-width: 1280px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand span { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 700; color: #2E2A2D; }

.hamburger-icon { display: flex; cursor: pointer; }
.desktop-nav { display: none; align-items: center; gap: 26px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 12px; }
.page-content { padding-bottom: 88px; }
.bottom-nav-mobile { display: flex; }
.footer-mobile { display: block; }
.footer-desktop { display: none; }
.hero-copy { max-width: 100%; }

.kolam-pill { display: flex; align-items: center; gap: 6px; border-radius: 16px; padding: 7px 14px; font-family: 'Work Sans', sans-serif; font-size: 13px; font-weight: 700; }

.deals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .deals-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .deals-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.deal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .deal-grid { grid-template-columns: 1fr; } }

.quick-picks, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .quick-picks, .related-grid { grid-template-columns: 1fr; } }
.body-copy { font-family: 'Work Sans', sans-serif; font-size: 16px; color: #4A4448; line-height: 1.75; }

.popup-backdrop { display: none; align-items: flex-end; justify-content: center; position: fixed; inset: 0; z-index: 50; background: rgba(46,42,45,0.55); }
.popup-backdrop.open { display: flex; }
.popup-sheet { width: 100%; border-radius: 18px 18px 0 0; max-height: 85vh; overflow-y: auto; background: #FFFDFB; padding: 10px 22px 28px; box-shadow: 0 -10px 30px rgba(0,0,0,0.18); }

.video-backdrop { display: none; align-items: center; justify-content: center; position: fixed; inset: 0; z-index: 55; background: rgba(46,42,45,0.72); padding: 24px; }
.video-backdrop.open { display: flex; }

.thumb-dots { background-color: #F3E6DE; background-image: radial-gradient(circle at 1px 1px, rgba(122,78,140,0.18) 1.4px, transparent 1.4px); background-size: 16px 16px; position: relative; overflow: hidden; }
.thumb-dots.has-thumb { background-image: none; background-size: cover; background-position: center; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,253,251,0.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(46,42,45,0.2); }
.duration-chip { position: absolute; bottom: 8px; right: 8px; background: rgba(46,42,45,0.8); color: #FFFDFB; font-family: 'Work Sans', sans-serif; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.diff-chip { display: inline-block; font-family: 'Work Sans', sans-serif; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.deal-thumb { background: #F3E6DE; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.deal-thumb.ratio-43 { aspect-ratio: 4/3; }

.admin-notice { background: #FDF0E4; border: 1px solid #E8C79A; color: #8A5A1F; padding: 12px 20px; font-family: 'Work Sans', sans-serif; font-size: 13px; text-align: center; }

.breadcrumb { font-family: 'Work Sans', sans-serif; font-size: 13px; color: #8A8286; margin-bottom: 16px; }
.breadcrumb a { color: #8A8286; }

.page-title { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; color: #2E2A2D; margin: 0 0 10px; }
.page-intro { font-family: 'Work Sans', sans-serif; font-size: 14.5px; color: #6B6468; max-width: 620px; margin: 0 0 28px; }

.toolbar-row { max-width: 1280px; margin: 0 auto; padding: 0 40px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid #ECE1D8; padding-bottom: 24px; margin-bottom: 32px; }

.pagination-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 44px; }
.page-num { width: 32px; height: 32px; border-radius: 3px; border: 1px solid #ECE1D8; color: #5B5458; display: flex; align-items: center; justify-content: center; font-family: 'Work Sans', sans-serif; font-size: 13px; }
.page-num.is-active { background: #7A4E8C; color: #FFFDFB; border-color: #7A4E8C; font-weight: 600; }

@media (min-width: 1024px) {
  .hamburger-icon { display: none; }
  .desktop-nav { display: flex; }
  .chip-row { display: none; }
  .page-content { padding-bottom: 0; }
  .bottom-nav-mobile { display: none; }
  .footer-mobile { display: none; }
  .footer-desktop { display: block; }
  .hero-copy { max-width: 640px; }
  .popup-backdrop { align-items: center; }
  .popup-sheet { width: 460px; max-width: 90vw; border-radius: 14px; }
}
