/* =========================================
   Minimal-UI - Minimal-UI is a minimalist CSS framework for rapid prototyping.
   https://github.com/s17labs/minimal-ui
   ========================================= */

:root {
   /* Color Palette */
   --mu-primary-bg: #0e0e10;
   --mu-accent: #ff4136;
   --mu-text-main: #f1f1f1;
   --mu-text-muted: #868686;
   --mu-surface: #1a1a1c;
   --mu-surface-hover: rgba(255, 255, 255, 0.03);

   /* Typography */
   --mu-font-base: Verdana, sans-serif;
   --mu-font-heading: 'Aldrich', sans-serif;
   /* Ensure Aldrich is imported in your HTML */

   /* Layout */
   --mu-radius: 4px;
   --mu-transition: 0.3s ease;
}

/* --- Base Reset --- */
*, *::before, *::after {
   box-sizing: border-box;
}

body {
   margin: 0;
   padding: 0;
   background-color: var(--mu-primary-bg);
   color: var(--mu-text-main);
   font-family: var(--mu-font-base);
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
   display: none;
}

a {
   color: inherit;
   text-decoration: none;
   transition: var(--mu-transition);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
   font-family: var(--mu-font-heading);
   margin-top: 0;
   margin-bottom: 1rem;
   line-height: 1.2;
}

p {
   margin-top: 0;
   margin-bottom: 1.5rem;
   color: var(--mu-text-muted);
}

.text-accent { color: var(--mu-accent); }
.text-main { color: var(--mu-text-main); }
.text-muted { color: var(--mu-text-muted); }
.text-center { text-align: center; }

/* --- Layout & Containers --- */
.container {
   width: 100%;
   max-width: 700px;
   margin: 0 auto;
   padding: 20px;
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between;}

.gap-1 {
   gap: 1rem;
}

.gap-2 {
   gap: 2rem;
}

/* --- Components --- */

/* Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.6rem;
   font-size: 1.1rem;
   background: var(--mu-surface);
   border: 1px solid transparent;
   color: var(--mu-text-muted);
   cursor: pointer;
   padding: 0.8rem 1.4rem;
   border-radius: var(--mu-radius);
   font-family: inherit;
   transition: var(--mu-transition);
}

.btn:hover {
   background: var(--mu-accent);
   color: var(--mu-text-main);
}

.btn-ghost {
   background: transparent;
   padding: 0.5rem 1rem;
}
.btn-ghost:hover {
   color: var(--mu-accent);
   background: transparent;
}

/* Links */
.link:hover, .link:active {
   color: var(--mu-accent);
   text-decoration: underline;
}

.link-ghost:hover, .link-ghost:active {
   text-decoration: underline;
}

/* Cards & Surfaces */
.card {
   background: var(--mu-surface-hover);
   border-radius: var(--mu-radius);
   padding: 1.5rem;
   transition: var(--mu-transition);
}

.footer {
   width: 100%;
   padding: 2.5rem 0 1.5rem;
   opacity: 0.65;
   font-size: 0.95rem;
   text-align: center;
   margin-top: auto;
}

.footer a:hover, .footer a:active {
   color: var(--mu-accent);
   text-decoration: underline;
}

/* Interactive List Items (from your projects list) */
.list-group {
   display: flex;
   flex-direction: column;
   gap: 1rem;
}

.list-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.5rem;
   background: var(--mu-surface-hover);
   border-radius: var(--mu-radius);
   transition: all var(--mu-transition);
}

.list-item:hover {
   background: linear-gradient(90deg, rgba(255, 65, 54, 0.0) 0%, rgba(255, 65, 54, 0.2) 100%);
   transform: translateX(8px);
}

.list-item h3 {
   margin: 0 0 0.4rem;
   font-size: 1.3rem;
   font-family: var(--mu-font-base);
   color: var(--mu-text-main);
}

.list-item p {
   margin: 0;
   font-size: 0.95rem;
}

.list-item .icon-arrow {
   font-size: 1.2rem;
   color: var(--mu-text-muted);
   transition: var(--mu-transition);
}

.list-item:hover .icon-arrow {
   color: var(--mu-accent);
   transform: translateX(4px);
}

/* The s17 Cube Logo Element */
.brand-cube {
   display: inline-block;
   width: 0.85em;
   height: 0.85em;
   background-color: var(--mu-accent);
   /* If it doesn't fit adjust this property*/
   transform: translateY(0.1em);
   margin-right: 0.2em;
}

/* Margin utility classes */
.margin-0 {
   margin: 0;
}
.margin-min {
   margin-bottom: 5px;
}

/* --- Utilities --- */
.fade-in {
   animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(10px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* Mobile Responsiveness */
@media (max-width: 580px) {
   .btn {
      width: 100%;
   }

   .mobile-col {
      flex-direction: column;
   }
}
