 /* 
  Octarule Project
  Author: Keith (Arc.Keith)
  Created: July 2025
  License: Creative Commons Attribution 4.0 International (CC BY 4.0)
  https://creativecommons.org/licenses/by/4.0/
*/

/* Octalrule Hub Styles */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

body {
  font-family: sans-serif, 'IBM Plex Sans', 'Segoe UI', Geneva, Verdana, sans-serif;
  background: #111;
  color: #cfd8dc;
  margin: 0;
  padding: 0;
}



header {
  background: #1f1f1f;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #3f51b5;
  position: relative;
}

.brand {
  margin: 0;
  font-weight: 800;
  font-size: 1.6rem;
  color: #488cde; /* 488cde,  */
  font-family: 'Tomorrow', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.brand a {
  color: inherit;
  text-decoration: none;
}



nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1f1f1f;
  display: none;
  flex-direction: column;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 8px 16px rgba(63, 81, 181, 0.4);
  z-index: 1000;
}
nav.open {
  display: flex;
}
nav a {
  color: #aabbee;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid #333;
  transition: background-color 0.3s ease;
}
nav a:first-child {
  border-top: none;
}
nav a:hover,
nav a:focus {
  background-color: #3f51b5;
  color: #fff;
  outline: none;
}

main {
  flex: 1 0 auto;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main-heading {
  font-family: 'Tomorrow', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;       
  font-weight: 600;         
  color: #c0c1db;           /* Brand color */
  text-shadow: 0 0 4px rgba(192, 193, 219, .5);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-align: center;    
  letter-spacing: -0.5px;
}

.main-para {
   text-align: left;
   font-size: 1.1rem;           /* Slightly larger than body text */
  line-height: 1.6;            /* Open and readable */
  color: #e0e0ff;              /* Same as h1 for harmony */
  margin-bottom: 2rem;         /* Space before app content begins */
  text-align: left;          /* Matches centered heading */
  max-width: 700px;            /* Keeps it readable on large screens */
  margin-left: auto;
  margin-right: auto;
  font-weight: 300; 
  text-shadow: 0 0 3px rgba(192, 193, 219, 0.2);
  border-style: groove;
  border-color: dimgray;
  padding: .5rem;
}

@media (max-width: 650px) {
  .main-heading {
    font-size: 1.45rem;
  }
  .main-para {
    font-size: .95rem;
  }
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.app-card {
  background: #222222;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(63, 81, 181, 0.3);
  transition: transform 0.2s ease;
  cursor: pointer;
  color: #c0c0ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.app-card:hover,
.app-card:focus {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(127, 136, 231, 0.6);
  color: #7f88e7;
  outline: none;
}
.app-card h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.app-card p {
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #a0a0d0;
}

footer {
  all: initial;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #333;
  margin-top: 1.5rem;
}

/* Footer layout – shared across Kerrian apps */
.app-footer {
  
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  padding: 1rem;
  gap: 0.4rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-left,
.footer-right {
  width: auto;
}

/* Desktop layout */
@media (min-width: 750px) {
  .app-footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  header {
    padding: 1rem 2rem;
  }
  .menu-toggle {
    display: none;
  }
  nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    gap: 1.5rem;
  }
  nav a {
    border: none;
    padding: 0;
    color: #aabbee;
  }
  nav a:hover,
  nav a:focus {
    background: transparent;
    color: #7f88e7;
  }
  .app-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .app-card {
    flex: 1 1 250px;
  }
}

/* Mobile layout: stack footer, move copyright to bottom */
@media (max-width: 750px) {
  .app-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    order: 3;
    width: 100%;
  }

.footer-center {
    order: 2;
    width: 100%;
    margin-top: 0.4rem;
  }

  .footer-right {
    order: 1;
    width: 100%;
    margin-top: 0.4rem;
  }
}
.icon {
  height: 3rem;
  width: auto;
  cursor: pointer;
}
@media (max-width: 599px) {
  .icon {
    max-height: 50px;
  }
}


/* Home-specific tweaks */
#home .app-card:hover {
  background: #1a1a2a;
}

.info-panel {
      display: none;
      margin: 1rem auto 0;
      margin-top: 2rem;
      padding: 1rem;
      max-width: 600px;
      background: #1e1e1e;
      color: #ccc;
      font-size: 0.95rem;
      border: 1px solid #333;
      border-radius: 0.4rem;
      text-align: left;
      animation: fadeIn 0.3s ease-in-out;
    }

    .info-panel.show {
      display: block;
    }

hr {
border: none; 
border-top: 1px solid #444; 
margin: 2rem 0; 
}

.legal-links {
  display: flex;
  flex-direction: row; /* makes them inline */
  flex-wrap: wrap;     /* wraps on small screens if needed */
  gap: 2rem;           /* spacing between links */
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.legal-links a {
  color: #888;
  text-decoration: none;
}

.legal-links a:hover {
  color: #ccc;
  text-decoration: underline;
}

@media (max-width: 750px) {
  .legal-links {
    flex-direction: row;      /* keeps them side by side */
    justify-content: center;  /* centers them horizontally */
    flex-wrap: wrap;
  }
}
.logo-icon {
  height: 2.2rem;
  vertical-align: middle;
  margin-right: 1rem;
}


/* Chart styles */
.octab-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
  }

  .octab-table {
    flex: 1 1 48%;
    min-width: 400px;
    border-collapse: collapse;
    border: 2px solid #444;
    font-family: monospace;
    font-size: 0.9rem;
    background-color: #111;
    color: #eee;
    margin-bottom: 2rem;
  }

  

  .octab-table th, .octab-table td {
    padding: 0.4rem 0.6rem;
    border: 1px solid #333;
    text-align: center;
  }

  .octab-table th {
    background-color: #444;
    font-weight: bold;
  }

  .octab-table tbody tr:nth-child(even) {
  background-color: #222;
}

/*---octa button----*/
.wide-octagon-button {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;   /* wider */
    height: 30px;  /* shorter */
    color: white;
    background: #488cde;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    clip-path: polygon(
      15% 0%, 85% 0%,   /* longer top */
      88% 25%, 88% 75%, /* angled corners */
      85% 100%, 15% 100%, /* longer bottom */
      12% 75%, 12% 25%
    );
    transition: background-color 0.3s ease;
  }
  .wide-octagon-button:hover {
    background: #2f2f2f;

  }
