/* ============================================
   HINDU CALENDAR 2027 - CSS
   tools.dotiam.com
   ============================================ */

/* ── Tool Header ── */
.tool-header {
    background: linear-gradient(135deg, #b5451b 0%, #8b1a1a 50%, #4a1942 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}
.tool-header-content { max-width: 800px; margin: 0 auto; }
.tool-icon-large { font-size: 72px; margin-bottom: 20px; animation: hc-bounce 2s ease-in-out infinite; }
@keyframes hc-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.tool-header h1 { font-size: 46px; font-weight: 900; margin-bottom: 12px; line-height: 1.2; }
.tool-subtitle { font-size: 19px; opacity: .95; margin-bottom: 22px; line-height: 1.6; }
.tool-meta { display:flex; justify-content:center; align-items:center; gap:14px; flex-wrap:wrap; font-size:15px; }
.meta-separator { opacity:.5; }

/* ── Breadcrumb ── */
.breadcrumb { padding:18px 0; font-size:14px; color:#666; }
.breadcrumb a { color:#666; text-decoration:none; transition:color .3s; }
.breadcrumb a:hover { color:#b5451b; }
.breadcrumb .separator { margin:0 10px; color:#ddd; }
.breadcrumb .current { color:#333; font-weight:600; }

/* ── Tool Content Wrapper ── */
.tool-content { padding: 50px 20px; background: #fdf6ee; }

/* ── Main Calendar Container ── */
.hc-container {
    max-width: 1300px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 15px 60px rgba(0,0,0,.12);
    overflow: hidden;
}

/* ── Calendar Header ── */
.hc-header {
    background: linear-gradient(135deg, #b5451b 0%, #8b1a1a 50%, #4a1942 100%);
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hc-header::before {
    content: '🕉️';
    position: absolute;
    font-size: 200px;
    opacity: .07;
    top: -40px;
    right: -40px;
    line-height: 1;
}
.hc-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 6px; text-shadow: 2px 2px 6px rgba(0,0,0,.3); }
.hc-header p { font-size: 16px; opacity: .9; margin: 0; }
.hc-vikram { display:inline-block; margin-top:10px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); border-radius:20px; padding:6px 18px; font-size:14px; font-weight:700; }

/* ── Year Nav ── */
.hc-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 30px;
    background: #fff8f2;
    border-bottom: 2px solid #f0e0d0;
}
.hc-nav-btn {
    background: #b5451b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items:center; justify-content:center;
}
.hc-nav-btn:hover { background: #8b1a1a; transform: scale(1.1); }
.hc-year-label { font-size: 22px; font-weight: 800; color: #4a1942; }

/* ── Month Filter Tabs ── */
.hc-month-tabs {
    display: flex;
    gap: 6px;
    padding: 18px 24px;
    overflow-x: auto;
    background: #fff8f2;
    border-bottom: 2px solid #f0e0d0;
    scrollbar-width: thin;
}
.hc-month-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 2px solid #e5c9b0;
    border-radius: 20px;
    background: white;
    font-size: 13px;
    font-weight: 700;
    color: #8b1a1a;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.hc-month-tab:hover { border-color: #b5451b; background: #fff0e6; }
.hc-month-tab.active { background: #b5451b; border-color: #b5451b; color: white; }

/* ── Legend ── */
.hc-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 14px 24px;
    background: #fffbf7;
    border-bottom: 2px solid #f0e0d0;
    align-items: center;
}
.hc-legend-title { font-size: 13px; font-weight: 800; color: #4a1942; margin-right: 4px; }
.hc-legend-item { display:flex; align-items:center; gap:6px; font-size:12px; color:#555; font-weight:600; }
.hc-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; }
.hc-dot.festival  { background: #e53935; }
.hc-dot.vrat      { background: #7b1fa2; }
.hc-dot.muhurat   { background: #2e7d32; }
.hc-dot.ekadashi  { background: #f57c00; }
.hc-dot.amavasya  { background: #1565c0; }
.hc-dot.purnima   { background: #00838f; }

/* ── Months Grid ── */
.hc-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

/* ── Single Month Block ── */
.hc-month-block {
    border-right: 1px solid #f0e0d0;
    border-bottom: 1px solid #f0e0d0;
    padding: 0;
}
.hc-month-block:nth-child(3n) { border-right: none; }

.hc-month-title {
    background: linear-gradient(135deg, #b5451b, #8b1a1a);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hc-month-name-en { font-size: 16px; font-weight: 800; }
.hc-month-name-hi { font-size: 13px; opacity: .85; font-weight: 600; }
.hc-month-hindu { font-size: 12px; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 12px; }

/* ── Week Days Header ── */
.hc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #4a1942;
}
.hc-weekday {
    text-align: center;
    padding: 7px 2px;
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,.85);
}
.hc-weekday:first-child { color: #ff8a80; }
.hc-weekday:last-child  { color: #82b1ff; }

/* ── Days Grid ── */
.hc-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}

.hc-day {
    min-height: 72px;
    border-right: 1px solid #f5e6d8;
    border-bottom: 1px solid #f5e6d8;
    padding: 5px 4px 4px;
    cursor: pointer;
    transition: background .15s;
    position: relative;
    overflow: hidden;
}
.hc-day:nth-child(7n) { border-right: none; }
.hc-day:hover { background: #fff8f2; }
.hc-day.empty { background: #fafafa; cursor: default; }
.hc-day.sunday .hc-day-num { color: #c62828; }
.hc-day.saturday .hc-day-num { color: #1565c0; }
.hc-day.today { background: #fff3e0; }
.hc-day.today::after {
    content: '';
    position: absolute; top:3px; right:3px;
    width:7px; height:7px;
    background: #b5451b;
    border-radius: 50%;
}
.hc-day.has-event { background: #fffaf5; }

.hc-day-num { font-size: 15px; font-weight: 800; color: #222; line-height: 1; }
.hc-tithi { font-size: 9.5px; color: #7b1fa2; font-weight: 700; margin-top: 2px; line-height: 1.2; }
.hc-nakshatra { font-size: 9px; color: #1565c0; font-weight: 600; margin-top: 1px; line-height: 1.2; }
.hc-event-dots { display:flex; gap:2px; flex-wrap:wrap; margin-top:3px; }
.hc-event-dot {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hc-event-dot.festival { background:#fde8e8; color:#c62828; }
.hc-event-dot.vrat     { background:#f3e5f5; color:#7b1fa2; }
.hc-event-dot.muhurat  { background:#e8f5e9; color:#2e7d32; }
.hc-event-dot.ekadashi { background:#fff3e0; color:#e65100; }
.hc-event-dot.amavasya { background:#e3f2fd; color:#1565c0; }
.hc-event-dot.purnima  { background:#e0f7fa; color:#006064; }

/* ── Detail Panel (modal-like) ── */
.hc-detail-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.hc-detail-overlay.open { display: flex; }
.hc-detail-panel {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    animation: hc-slide-up .25s ease;
}
@keyframes hc-slide-up { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }

.hc-dp-header {
    background: linear-gradient(135deg, #b5451b, #4a1942);
    color: white;
    padding: 22px 24px 18px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.hc-dp-date { font-size: 28px; font-weight: 900; }
.hc-dp-month { font-size: 15px; opacity: .85; margin-top: 2px; }
.hc-dp-close {
    background: rgba(255,255,255,.2);
    border: none;
    color: white;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items:center; justify-content:center;
    transition: background .2s;
}
.hc-dp-close:hover { background: rgba(255,255,255,.35); }

.hc-dp-body { padding: 22px 24px; }
.hc-dp-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f5e6d8;
}
.hc-dp-row:last-child { border-bottom: none; }
.hc-dp-icon { font-size: 22px; flex-shrink:0; }
.hc-dp-info-title { font-size: 12px; font-weight: 800; color: #b5451b; text-transform: uppercase; letter-spacing: .5px; }
.hc-dp-info-val { font-size: 15px; font-weight: 700; color: #222; margin-top: 2px; }
.hc-dp-info-hi { font-size: 13px; color: #555; margin-top: 1px; }
.hc-dp-events { display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.hc-dp-event {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: center;
}
.hc-dp-event.festival { background:#fde8e8; color:#c62828; }
.hc-dp-event.vrat     { background:#f3e5f5; color:#7b1fa2; }
.hc-dp-event.muhurat  { background:#e8f5e9; color:#2e7d32; }
.hc-dp-event.ekadashi { background:#fff3e0; color:#e65100; }
.hc-dp-event.amavasya { background:#e3f2fd; color:#1565c0; }
.hc-dp-event.purnima  { background:#e0f7fa; color:#006064; }

/* ── Upcoming Events Sidebar ── */
.hc-sidebar-section {
    padding: 30px 24px;
    background: #fff8f2;
    border-top: 2px solid #f0e0d0;
}
.hc-sidebar-section h3 {
    font-size: 20px;
    font-weight: 800;
    color: #4a1942;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hc-events-list { display:flex; flex-direction:column; gap:10px; }
.hc-event-item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    border-left: 4px solid #b5451b;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.hc-event-item.vrat     { border-left-color: #7b1fa2; }
.hc-event-item.muhurat  { border-left-color: #2e7d32; }
.hc-event-item.ekadashi { border-left-color: #f57c00; }
.hc-event-item.purnima  { border-left-color: #00838f; }
.hc-event-item.amavasya { border-left-color: #1565c0; }
.hc-event-date-box {
    min-width: 50px;
    text-align: center;
    background: #fdf6ee;
    border-radius: 8px;
    padding: 6px 4px;
}
.hc-event-day { font-size: 20px; font-weight: 900; color: #b5451b; line-height: 1; }
.hc-event-mon { font-size: 11px; font-weight: 700; color: #888; }
.hc-event-info-name { font-size: 14px; font-weight: 800; color: #222; }
.hc-event-info-hi   { font-size: 12px; color: #7b1fa2; font-weight: 600; margin-top: 1px; }
.hc-event-info-type { font-size: 11px; color: #888; margin-top: 1px; }

/* ── SEO Content ── */
.seo-content { padding: 70px 20px; background: white; }
.content-article { max-width: 900px; margin: 0 auto; line-height: 1.8; }
.content-article h2 { font-size: 30px; font-weight: 800; margin: 44px 0 16px; color: #333; }
.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 22px; font-weight: 700; margin: 30px 0 12px; color: #333; }
.content-article p  { margin-bottom: 18px; color: #666; font-size: 16px; }
.content-article strong { color: #333; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hc-months-grid { grid-template-columns: repeat(2, 1fr); }
    .hc-month-block:nth-child(3n) { border-right: 1px solid #f0e0d0; }
    .hc-month-block:nth-child(2n) { border-right: none; }
}
@media (max-width: 700px) {
    .tool-header h1 { font-size: 28px; }
    .tool-subtitle   { font-size: 15px; }
    .tool-icon-large { font-size: 48px; }
    .hc-months-grid  { grid-template-columns: 1fr; }
    .hc-month-block  { border-right: none; }
    .hc-header h2    { font-size: 26px; }
    .hc-day          { min-height: 58px; }
    .hc-day-num      { font-size: 13px; }
    .hc-tithi        { font-size: 8.5px; }
    .hc-nakshatra    { display: none; }
    .hc-month-tabs   { padding: 12px 14px; }
    .hc-legend       { gap: 10px; padding: 10px 14px; }
}
@media (max-width: 400px) {
    .hc-day { min-height: 50px; padding: 3px 2px; }
    .hc-event-dot { display: none; }
}
