/* Custom styles for nickfixit.com */

/* Color variables */
:root {
  /* Base colors for light theme */
  --primary-color: #4caf50;
  --primary-dark: #388e3c;
  --primary-light: rgba(76, 175, 80, 0.2);
  --primary-hover: rgba(76, 175, 80, 0.7);
  --text-color: #333333;
  --background-color: #ffffff;
  --card-background: #ffffff;
  --shadow-light: rgba(0,0,0,0.1);
  --shadow-medium: rgba(0,0,0,0.12);
}

/* Dark theme overrides */
[data-md-color-scheme="slate"] {
  --primary-color: #5ab95e;
  --primary-dark: #4caf50;
  --primary-light: rgba(90, 185, 94, 0.2);
  --primary-hover: rgba(90, 185, 94, 0.7);
  --text-color: #e0e0e0;
  --background-color: #1e1e1e;
  --card-background: #2e2e2e;
}

/* Grid layout for cards and content sections */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  margin: 1.5rem 0;
}

.grid.small {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

/* Card styling */
.card {
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-light);
  transition: all .2s ease;
  border-top: 4px solid var(--primary-color);
  background-color: var(--card-background);
}

.card:hover {
  box-shadow: 0 4px 8px var(--shadow-medium);
 
}

/* Fix for links inside cards */
.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover {
  color: inherit;
  text-decoration: none;
}

/* Feature box styling */
.feature-box {
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
  background-color: var(--md-code-bg-color);
}

/* Tag styling */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem;
  border-radius: 1rem;
  background-color: var(--primary-light);
  color: var(--md-text-color);
  font-size: 0.8rem;
  transition: all .2s ease;
  text-decoration: none;
}

.tag:hover {
  background-color: var(--primary-hover);
  color: white;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* Button styling */
.button, 
.md-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: #ffffff !important;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-weight: 500;
  border: none;
}

.button:hover,
.md-button:hover {
  background-color: var(--primary-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Button light/dark mode adjustments */
[data-md-color-scheme="default"] .button,
[data-md-color-scheme="default"] .md-button {
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .button,
[data-md-color-scheme="slate"] .md-button {
  color: #ffffff !important;
}

/* Button disabled state */
.button:disabled,
.md-button--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button:disabled:hover,
.md-button--disabled:hover {
  transform: none;
  background-color: var(--primary-color);
}

/* Hero section styling */
.hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* Project card specific styling */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card h3 {
  margin-top: 0;
}

.project-card .logo {
  width: 50px;
  height: 50px;
  float: right;
  margin-left: 1rem;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* Blog post specific styling */
.post-meta {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1rem;
}

/* Custom admonitions */
.md-typeset .admonition.quote,
.md-typeset details.quote {
  border-color: #888;
}

.md-typeset .quote > .admonition-title,
.md-typeset .quote > summary {
  background-color: rgba(136, 136, 136, 0.1);
}

.md-typeset .quote > .admonition-title::before,
.md-typeset .quote > summary::before {
  background-color: #888;
  -webkit-mask-image: var(--md-admonition-icon--quote);
          mask-image: var(--md-admonition-icon--quote);
}

/* Fix for code blocks */
.md-typeset pre > code {
  white-space: pre-wrap;
}

/* Connect with Me social links styling */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.social-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--md-code-bg-color);
  color: var(--md-typeset-color) !important;
  border-radius: 4px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  font-weight: 500;
  border: 1px solid var(--primary-light);
  text-align: center;
  min-width: 110px;
}

.social-link:hover {
  border-color: var(--primary-color);
}

/* Fix for all links - prevent unwanted blue/purple */
.md-content a {
  color: inherit;
  text-decoration: none;
}

.md-content a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Only color links in main text */
.md-content p > a, 
.md-content li > a,
.md-content h2 > a,
.md-content h3 > a,
.md-content h4 > a {
  color: var(--primary-color);
  text-decoration: none;
}

.md-content p > a:hover, 
.md-content li > a:hover,
.md-content h2 > a:hover,
.md-content h3 > a:hover,
.md-content h4 > a:hover {
  text-decoration: underline;
}


/* Page Layout */
.shop-header {
  text-align: center;
  margin-bottom: 2rem;
}

.shop-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.8;
}

/* Subscription Cards */
.subscription-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  max-width: 1400px;
  margin-left: auto \!important;
  margin-right: auto \!important;
}

.subscription-card {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  background-color: var(--card-background, #fff);
  border: 1px solid rgba(125,125,125,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.subscription-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1.5rem auto;
}

.subscription-card h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.subscription-card .price {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
  color: var(--primary-color);
}

.subscription-card .features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  flex-grow: 1;
}

.subscription-card .features li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(125,125,125,0.1);
  position: relative;
}

.subscription-card .features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.subscription-card .features li:last-child {
  border-bottom: none;
}

.subscription-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.subscribe-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscribe-button:hover {
  background-color: var(--primary-dark);

}

/* Featured card */
.subscription-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.02);
  z-index: 2;
}

.subscription-card.featured::before {
  content: "Popular";
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-bottom-left-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}



/* Premium card */
.subscription-card.premium {
  background: linear-gradient(to bottom right, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.1));
}

/* Service Cards */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  max-width: 1400px;
  margin-left: auto \!important;
  margin-right: auto \!important;
}

.service-card {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 2rem;
  background-color: var(--card-background, #fff);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card p {
  margin-bottom: 1.5rem;
  flex-grow: 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.service-features li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.service-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-card:hover {

  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Product Cards */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  max-width: 1400px;
  margin-left: auto \!important;
  margin-right: auto \!important;
}

.product-card {
  border-radius: 10px;
  border: 1px solid rgba(125,125,125,0.2);
  padding: 2rem;
  background-color: var(--card-background, #fff);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.product-card p {
  margin-bottom: 1.5rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-grow: 1;
}

.product-feature {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(76, 175, 80, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
}

.product-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(125,125,125,0.1);
  text-align: center;
}

.coming-soon {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(125,125,125,0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.product-card:hover {

  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Contact Section */
.contact-container {
  max-width: 800px;
  margin: 2rem auto 3rem auto;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: var(--card-background, #fff);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  min-width: 200px;
}

.contact-icon {
  font-size: 2rem;
  margin-right: 1rem;
}

.contact-info {
  text-align: left;
}

.contact-info h4 {
  margin: 0 0 0.5rem 0;
}

.contact-info p {
  margin: 0;
  opacity: 0.8;
}

.contact-method:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.contact-note {
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.8;
}
