/*
Theme Name: Zigmoid
Theme URI: https://example.com/zigmoid
Author: Shashwat
Author URI: https://example.com
Description: A Gen Z-inspired tech blogging theme with dark mode, smooth transitions, and clean layout.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zigmoid
Tags: tech, dark-mode, responsive, blog
*/

/* --- Global Styles --- */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* --- Header Styles --- */
.msn-style-header {
  background-color: #212529 !important;
}

/* Theme Toggle Icons */
#themeToggle .dark-icon {
  display: none;
}
#themeToggle .light-icon {
  display: inline-block;
}
body[data-bs-theme="dark"] #themeToggle .dark-icon {
  display: inline-block;
}
body[data-bs-theme="dark"] #themeToggle .light-icon {
  display: none;
}

/* --- Navigation Styles --- */
.msn-nav-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.msn-nav-wrapper::-webkit-scrollbar {
  display: none;
}
.msn-nav .nav-link {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  color: #ddd;
  white-space: nowrap;
  transition: background 0.2s;
}
.msn-nav .nav-link:hover {
  background-color: #444;
  color: #fff;
}
.msn-nav .nav-link.active {
  background-color: #2b2b2b;
  border: 1px solid #555;
  color: #0dcaf0;
  font-weight: bold;
}

/* Dropdown Dark */
.dropdown-menu-dark {
  background-color: #222;
  border: 1px solid #444;
}
.dropdown-menu-dark .dropdown-item {
  color: #ddd;
}
.dropdown-menu-dark .dropdown-item:hover {
  background-color: #333;
  color: #fff;
}

/* --- Masonry Layout --- */
.masonry-wrapper {
  padding: 1rem;
  background: #f1f1f1;
}
body[data-bs-theme="dark"] .masonry-wrapper {
  background: #222;
}

.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 600px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 900px) {
  .masonry-grid {
    column-count: 3;
  }
}
@media (min-width: 1200px) {
  .masonry-grid {
    column-count: 5;
  }
}

.masonry-card {
  transform: scale(1);
  background: white;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}
body[data-bs-theme="dark"] .masonry-card {
  background: #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  padding: 1rem;
}
.masonry-card:hover {
  transform: translateY(-5px);
}
.masonry-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.masonry-content {
  padding: 0;
}
.masonry-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
body[data-bs-theme="dark"] .masonry-title,
body[data-bs-theme="dark"] .masonry-title a {
  color: #eee;
  text-decoration: none;
}
body[data-bs-theme="dark"] .masonry-title a:hover {
  color: #0dcaf0;
}
.masonry-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.75rem;
}
body[data-bs-theme="dark"] .masonry-excerpt {
  color: #bbb;
}

/* --- Animated Tab Section --- */
#animated-tab-section .tab-wrap {
  display: flex;
  overflow: hidden;
  height: 300px;
  border-radius: 12px;
  background-color: #0d0d0d;
}
body[data-bs-theme="dark"] #animated-tab-section .tab-wrap {
  background-color: #1a1a1a;
}
#animated-tab-section .tab {
  width: 0px;
  background: #111;
  color: white;
  transition: width 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid #222;
}
body[data-bs-theme="dark"] #animated-tab-section .tab {
  background: #282828;
  border-right: 1px solid #3a3a3a;
}
#animated-tab-section .tab:hover {
  width: 380px;
}
#animated-tab-section .tab .tab-label-link {
  text-decoration: none;
  color: inherit;
}
#animated-tab-section .tab .tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-weight: bold;
  padding: 1rem 0;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: white;
}
body[data-bs-theme="dark"] #animated-tab-section .tab .tab-label {
  color: #eee;
}
#animated-tab-section .tab .tab-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}
#animated-tab-section .tab:hover .tab-content {
  opacity: 1;
}
#animated-tab-section .tab .tab-content img {
  max-height: 180px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
#animated-tab-section .tab .tab-content h5 {
  font-weight: 600;
  color: white;
}
body[data-bs-theme="dark"] #animated-tab-section .tab .tab-content h5 {
  color: #eee;
}
#animated-tab-section .tab .tab-content p {
  font-size: 0.9rem;
  color: #ccc;
}
body[data-bs-theme="dark"] #animated-tab-section .tab .tab-content p {
  color: #bbb;
}
#animated-tab-section .tab .tab-icon {
  font-size: 1.5rem;
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #0dcaf0;
}

/* --- Sidebar --- */
.sidebar-hover {
  position: fixed;
  top: 85px;
  left: 0;
  height: calc(100vh - 85px);
  width: 0px;
  background-color: #212529;
  transition: width 0.3s ease;
  z-index: 9999;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 20px;
}
body[data-bs-theme="dark"] .sidebar-hover {
  background-color: #212529;
}
.sidebar-hover:hover {
  width: 250px;
}
.sidebar-content {
  color: white;
  white-space: nowrap;
}
.sidebar-content a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sidebar-content a:hover {
  background-color: #333;
  color: #fff;
}
.sidebar-icon {
  display: inline-block;
  width: 40px;
  text-align: center;
}
.sidebar-text {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-hover:hover .sidebar-text {
  opacity: 1;
}
.menu-parent {
  position: relative;
}
.submenu {
  display: none;
  flex-direction: column;
  background-color: #282828;
  margin-left: 20px;
}
body[data-bs-theme="dark"] .submenu {
  background-color: #282828;
}
.menu-parent:hover > .submenu {
  display: flex;
}
.menu-parent.has-children > a::after {
  content: "▼";
  position: absolute;
  right: 20px;
  font-size: 0.7em;
}
.submenu .menu-parent {
  position: relative;
}
.submenu .menu-parent .submenu {
  margin-left: 20px;
}

/* --- Card Grid Styles --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}
.post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
body[data-bs-theme="dark"] .post-card {
  background: #333;
  border-color: #444;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.post-card:hover {
  transform: translateY(-5px);
}
.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}
body[data-bs-theme="dark"] .card-title {
  color: #eee;
}
.card-excerpt {
  flex-grow: 1;
  margin-bottom: 10px;
  color: #555;
}
body[data-bs-theme="dark"] .card-excerpt {
  color: #bbb;
}
.card-btn {
  align-self: flex-start;
  background-color: #0073aa;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
}
.card-btn:hover {
  background-color: #005c8a;
}
.card-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 10px;
}
body[data-bs-theme="dark"] .card-date {
  color: #888;
}

/* --- General Dark Mode Fixes --- */
body[data-bs-theme="dark"] .card {
  background-color: #333;
  color: #eee;
}
body[data-bs-theme="dark"] .card-body {
  color: #eee;
}
body[data-bs-theme="dark"] .card.border-primary {
  border-color: #0dcaf0 !important;
}
body[data-bs-theme="dark"] .card.border-info {
  border-color: #0dcaf0 !important;
}
body[data-bs-theme="dark"] .text-muted {
  color: #bbb !important;
}
body[data-bs-theme="dark"] a {
  color: #0dcaf0;
}
body[data-bs-theme="dark"] a:hover {
  color: #0d9dc7;
}
body[data-bs-theme="dark"] .btn-outline-secondary {
  color: #eee;
  border-color: #666;
}
body[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #555;
  color: #fff;
  border-color: #555;
}
body[data-bs-theme="dark"] .btn-outline-info {
  color: #0dcaf0;
  border-color: #0dcaf0;
}
body[data-bs-theme="dark"] .btn-outline-info:hover {
  background-color: #0dcaf0;
  color: #fff;
}

/* --- Mobile Sidebar Fix --- */
@media (max-width: 767.98px) {
  .sidebar-hover {
    top: 60px;
    height: calc(100vh - 60px);
  }
}
@media (min-width: 768px) {
  .container,
  .masonry-wrapper,
  #animated-tab-section {
    margin-left: 0px;
  }
}
/*
Theme Name: Zigmoid
Theme URI: https://example.com/zigmoid
Author: Shashwat
Author URI: https://example.com
Description: A Gen Z-inspired tech blogging theme with dark mode, smooth transitions, and clean layout.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zigmoid
Tags: tech, dark-mode, responsive, blog
*/

/* --- Global Styles --- */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

/* --- Header Styles --- */
.msn-style-header {
  background-color: #212529 !important;
}

/* Theme Toggle Icons */
#themeToggle .dark-icon {
  display: none;
}
#themeToggle .light-icon {
  display: inline-block;
}
body[data-bs-theme="dark"] #themeToggle .dark-icon {
  display: inline-block;
}
body[data-bs-theme="dark"] #themeToggle .light-icon {
  display: none;
}

/* --- Navigation Styles --- */
.msn-nav-wrapper {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.msn-nav-wrapper::-webkit-scrollbar {
  display: none;
}
.msn-nav .nav-link {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  color: #ddd;
  white-space: nowrap;
  transition: background 0.2s;
}
.msn-nav .nav-link:hover {
  background-color: #444;
  color: #fff;
}
.msn-nav .nav-link.active {
  background-color: #2b2b2b;
  border: 1px solid #555;
  color: #0dcaf0;
  font-weight: bold;
}

/* Dropdown Dark */
.dropdown-menu-dark {
  background-color: #222;
  border: 1px solid #444;
}
.dropdown-menu-dark .dropdown-item {
  color: #ddd;
}
.dropdown-menu-dark .dropdown-item:hover {
  background-color: #333;
  color: #fff;
}

/* --- Masonry Layout --- */
.masonry-wrapper {
  padding: 1rem;
  background: #f1f1f1;
}
body[data-bs-theme="dark"] .masonry-wrapper {
  background: #222;
}

.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}
@media (min-width: 600px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (min-width: 900px) {
  .masonry-grid {
    column-count: 3;
  }
}
@media (min-width: 1200px) {
  .masonry-grid {
    column-count: 5;
  }
}

.masonry-card {
  transform: scale(1);
  background: white;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}
body[data-bs-theme="dark"] .masonry-card {
  background: #333;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  padding: 1rem;
}
.masonry-card:hover {
  transform: translateY(-5px);
}
.masonry-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.masonry-content {
  padding: 0;
}
.masonry-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
body[data-bs-theme="dark"] .masonry-title,
body[data-bs-theme="dark"] .masonry-title a {
  color: #eee;
  text-decoration: none;
}
body[data-bs-theme="dark"] .masonry-title a:hover {
  color: #0dcaf0;
}
.masonry-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 0.75rem;
}
body[data-bs-theme="dark"] .masonry-excerpt {
  color: #bbb;
}

/* --- Animated Tab Section --- */
#animated-tab-section .tab-wrap {
  display: flex;
  overflow: hidden;
  height: 300px;
  border-radius: 12px;
  background-color: #0d0d0d;
}
body[data-bs-theme="dark"] #animated-tab-section .tab-wrap {
  background-color: #1a1a1a;
}
#animated-tab-section .tab {
  width: 0px;
  background: #111;
  color: white;
  transition: width 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid #222;
}
body[data-bs-theme="dark"] #animated-tab-section .tab {
  background: #282828;
  border-right: 1px solid #3a3a3a;
}
#animated-tab-section .tab:hover {
  width: 380px;
}
#animated-tab-section .tab .tab-label-link {
  text-decoration: none;
  color: inherit;
}
#animated-tab-section .tab .tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  font-weight: bold;
  padding: 1rem 0;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: white;
}
body[data-bs-theme="dark"] #animated-tab-section .tab .tab-label {
  color: #eee;
}
#animated-tab-section .tab .tab-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}
#animated-tab-section .tab:hover .tab-content {
  opacity: 1;
}
#animated-tab-section .tab .tab-content img {
  max-height: 180px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
#animated-tab-section .tab .tab-content h5 {
  font-weight: 600;
  color: white;
}
body[data-bs-theme="dark"] #animated-tab-section .tab .tab-content h5 {
  color: #eee;
}
#animated-tab-section .tab .tab-content p {
  font-size: 0.9rem;
  color: #ccc;
}
body[data-bs-theme="dark"] #animated-tab-section .tab .tab-content p {
  color: #bbb;
}
#animated-tab-section .tab .tab-icon {
  font-size: 1.5rem;
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #0dcaf0;
}

/* --- Sidebar --- */
.sidebar-hover {
  position: fixed;
  top: 85px;
  left: 0;
  height: calc(100vh - 85px);
  width: 0px;
  background-color: #212529;
  transition: width 0.3s ease;
  z-index: 9999;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 20px;
}
body[data-bs-theme="dark"] .sidebar-hover {
  background-color: #212529;
}
.sidebar-hover:hover {
  width: 250px;
}
.sidebar-content {
  color: white;
  white-space: nowrap;
}
.sidebar-content a {
  display: block;
  padding: 10px 20px;
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sidebar-content a:hover {
  background-color: #333;
  color: #fff;
}
.sidebar-icon {
  display: inline-block;
  width: 40px;
  text-align: center;
}
.sidebar-text {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-hover:hover .sidebar-text {
  opacity: 1;
}
.menu-parent {
  position: relative;
}
.submenu {
  display: none;
  flex-direction: column;
  background-color: #282828;
  margin-left: 20px;
}
body[data-bs-theme="dark"] .submenu {
  background-color: #282828;
}
.menu-parent:hover > .submenu {
  display: flex;
}
.menu-parent.has-children > a::after {
  content: "▼";
  position: absolute;
  right: 20px;
  font-size: 0.7em;
}
.submenu .menu-parent {
  position: relative;
}
.submenu .menu-parent .submenu {
  margin-left: 20px;
}

/* --- Card Grid Styles --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}
.post-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
body[data-bs-theme="dark"] .post-card {
  background: #333;
  border-color: #444;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.post-card:hover {
  transform: translateY(-5px);
}
.card-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}
body[data-bs-theme="dark"] .card-title {
  color: #eee;
}
.card-excerpt {
  flex-grow: 1;
  margin-bottom: 10px;
  color: #555;
}
body[data-bs-theme="dark"] .card-excerpt {
  color: #bbb;
}
.card-btn {
  align-self: flex-start;
  background-color: #0073aa;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
}
.card-btn:hover {
  background-color: #005c8a;
}
.card-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 10px;
}
body[data-bs-theme="dark"] .card-date {
  color: #888;
}

/* --- General Dark Mode Fixes --- */
body[data-bs-theme="dark"] .card {
  background-color: #333;
  color: #eee;
}
body[data-bs-theme="dark"] .card-body {
  color: #eee;
}
body[data-bs-theme="dark"] .card.border-primary {
  border-color: #0dcaf0 !important;
}
body[data-bs-theme="dark"] .card.border-info {
  border-color: #0dcaf0 !important;
}
body[data-bs-theme="dark"] .text-muted {
  color: #bbb !important;
}
body[data-bs-theme="dark"] a {
  color: #0dcaf0;
}
body[data-bs-theme="dark"] a:hover {
  color: #0d9dc7;
}
body[data-bs-theme="dark"] .btn-outline-secondary {
  color: #eee;
  border-color: #666;
}
body[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #555;
  color: #fff;
  border-color: #555;
}
body[data-bs-theme="dark"] .btn-outline-info {
  color: #0dcaf0;
  border-color: #0dcaf0;
}
body[data-bs-theme="dark"] .btn-outline-info:hover {
  background-color: #0dcaf0;
  color: #fff;
}

/* --- Mobile Sidebar Fix --- */
@media (max-width: 767.98px) {
  .sidebar-hover {
    top: 60px;
    height: calc(100vh - 60px);
  }
}
@media (min-width: 768px) {
  .container,
  .masonry-wrapper,
  #animated-tab-section {
    margin-left: 0px;
  }
}

.interview-card {
  position: relative;
  color: #fff;
  background: url('YOUR_IMAGE_URL.jpg') center/cover no-repeat;
  overflow: hidden;
}

.interview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4); /* tweak opacity */
}

.interview-card * {
  position: relative;
  z-index: 1;
}
