/*
 * This file contains styles that style dynamically created elements.
 */
/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}


h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

h3 > a:link,
h3 > a:visited {
    text-decoration: none !important;
    color: #2c3e50;
}

h3 > a:hover {
    color: #3498db;
}
ul,
ol {
    /* Default is usually 20px */
    padding-left: 40px;
}

/*
 * Heading spacing - add breathing room in text flow
 */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.25em;
    margin-top: 1em;
}

/*
 * Remove top margin when headings are first child of container
 */
h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
    margin-top: 0;
}

/*
 * Also remove top margin when headings immediately follow other headings
 */
h1+h1,
h1+h2,
h1+h3,
h1+h4,
h1+h5,
h1+h6,
h2+h1,
h2+h2,
h2+h3,
h2+h4,
h2+h5,
h2+h6,
h3+h1,
h3+h2,
h3+h3,
h3+h4,
h3+h5,
h3+h6,
h4+h1,
h4+h2,
h4+h3,
h4+h4,
h4+h5,
h4+h6,
h5+h1,
h5+h2,
h5+h3,
h5+h4,
h5+h5,
h5+h6,
h6+h1,
h6+h2,
h6+h3,
h6+h4,
h6+h5,
h6+h6 {
    margin-top: 0.6em;
}

/*
 * Add some spacing to paragraphs too since you reset everything
 */
p+p {
    margin-top: 0.7em;
}

/* Header from index.html */
header {
    background: white;
    border-bottom: 1px solid #e1e1e1;
    padding: 20px 0;
}

h3 a {
    color: #2c3e50;
    text-decoration: none;
}

h3 a:hover {
    color: #3498db;
}

nav a {
    color: #666;
    font-weight: 500;
    margin-left: 30px;
    text-decoration: none;
}

nav a:hover {
    color: #2c3e50;
}

/* Footer */
footer {
    border-top: 1px solid #e1e1e1;
    color: #666;
    font-size: 14px;
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
}

.top-section {
    display: grid;
    gap: 40px;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 50px;
}

.equi-section {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
}


/*
 * Mobile: allow images to scale with container
 */
@media (max-width: 768px) {
    .top-section {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .blog-post {
        flex-direction: column;
    }

    .equi-section {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .blog-image {
        aspect-ratio: 3 / 2;
        /* Maintains 3:2 ratio */
        height: auto;
        width: 100%;
    }

}

/* Desktop: constrain to 240px (matches container) */
@media (min-width: 769px) {
    .blog-image {
        aspect-ratio: 3 / 2;
        /* Maintains 3:2 ratio */
        height: auto;
        width: 40%;
    }}


.notyet {
    background: #ddd;
}

.notyet .tag {
    background: #ccc;
    cursor: default;
    pointer-events: none;
}





.header-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.logo {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: #2c3e50;
    text-decoration: none;
}

.logo a:hover {
    color: #3498db;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Index Page Specific */
.main-content {
    margin-top: 40px;
}

.blog-section {
    margin-top: 0;
}

.blog-section h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 30px;
}

.blog-post {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
}

/* height and width set in media queries */
.blog-image {
    align-items: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    display: flex;
    flex-shrink: 0;
    font-size: 14px;
    justify-content: center;
    text-align: center;
}

.blog-content {
    flex: 1;
}

.blog-post h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-post h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-post h3 a:hover {
    color: #3498db;
}

.blog-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.tag {
    background: #ecf0f1;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    padding: 3px 8px;
}

.making-of {
    background: #e8f4f8;
    color: #2980b9;
}

.philosophy {
    background: #fdf2e9;
    color: #e67e22;
}

.blog-excerpt {
    color: #555;
}

.tools-box {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
}

.tools-box h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
}

.tools-box p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.tool-list {
    list-style: none;
}

.tool-list li {
    margin-bottom: 12px;
}

.tool-list a {
    color: #3498db;
    font-weight: 500;
    text-decoration: none;
}

.tool-list a:hover {
    color: #2980b9;
}

.coming-soon {
    color: #7f8c8d;
    font-style: italic;
}

.about-box {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
}

.about-box h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

.about-box p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.discord-link {
    align-items: center;
    background: #2c3e50;
    border-radius: 4px;
    color: white;
    display: inline-flex;
    font-size: 14px;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.3s;
}

.discord-link:hover {
    background: #34495e;
}

.discord-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Discord Page Specific */
.discord-info {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 40px;
}

.discord-info h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.discord-info p {
    color: #555;
    margin-bottom: 15px;
}

.discord-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    margin: 30px 0;
    padding: 40px;
    text-align: center;
}

.discord-button {
    align-items: center;
    background: white;
    border-radius: 8px;
    color: #2c3e50;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 600;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.discord-button:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.card-deck {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 40px;
}

/*
 * Note: Duplicate definition for .card
 */
.card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
}

.card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    font-size: 14px;
}

.card {
    display: flex;
    flex-direction: column;
}

.card p:last-child {
  margin-top: auto;
}

.community-access {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    padding: 20px;
}

.community-access h3 {
    color: #e68900;
    margin-bottom: 10px;
}

.community-access p {
    color: #8a6914;
    font-size: 14px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 25px;
    }

    .community-info {
        grid-template-columns: 1fr;
    }
}

/* Breadcrumbs Tool Specific */
/*
 * Note: This is a class, not the header tag
 */
.header {
    background: white;
    border-bottom: 1px solid #e1e1e1;
    padding: 15px 20px;
    position: relative;
}

.hamburger {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}

.hamburger div {
    background: #333;
    height: 3px;
    margin: 5px 0;
    transition: 0.3s;
    width: 25px;
}

.nav-menu {
    background: white;
    border-bottom: 1px solid #e1e1e1;
    display: none;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 100;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    display: block;
    padding: 15px 20px;
    text-decoration: none;
}

.nav-menu a:hover {
    background: #f8f9fa;
}

.nav-menu a:last-child {
    border-bottom: none;
}

.tool-header {
    margin-bottom: 40px;
    text-align: center;
}

.tool-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
}

.tool-interface {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    padding: 30px;
}

.input-section {
    margin-bottom: 30px;
}

.input-section label {
    color: #2c3e50;
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.path-input {
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    padding: 12px 16px;
    transition: border-color 0.3s;
    width: 100%;
}

.path-input:focus {
    border-color: #3498db;
    outline: none;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.generate-btn {
    background: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 12px 24px;
    transition: background 0.3s;
}

.generate-btn:hover {
    background: #2980b9;
}

.output-section {
    margin-top: 30px;
}

.output-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.preview {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
}

.breadcrumbs {
    align-items: center;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.breadcrumb-item {
    border-radius: 4px;
    color: #3498db;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.breadcrumb-item:hover {
    background: #ecf0f1;
    color: #2980b9;
}

.breadcrumb-item:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #bdc3c7;
    font-weight: bold;
    margin: 0 8px;
}

.code-output {
    background: #2c3e50;
    border-radius: 8px;
    color: #ecf0f1;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 20px;
    position: relative;
    white-space: pre-wrap;
}

.copy-btn {
    background: #34495e;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.copy-btn:hover {
    background: #4a6741;
}


.content-section {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 30px;
    padding: 40px;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.content-section p {
    color: #555;
    margin-bottom: 15px;
}


.future-features {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    margin-top: 40px;
    padding: 20px;
}

.future-features h3 {
    color: #e68900;
    margin-bottom: 10px;
}

.future-features p {
    color: #8a6914;
    font-size: 14px;
}

.patreon-info {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
    padding: 20px;
}

.patreon-info h3 {
    color: #e68900;
    margin-bottom: 10px;
}

.patreon-info p {
    color: #8a6914;
    font-size: 14px;
}

.join-section {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin: 40px 0;
    text-align: center;
}

.join-section h2 {
    color: white;
    margin-bottom: 15px;
}

.join-section p {
    color: #ecf0f1;
    margin-bottom: 25px;
}


.footer-iframe-container {
    margin: 0;
    padding: 0;
    width: 100%;
}

.footer-iframe {
    border: none;
    display: block;
    /* Initial height - will be adjusted by JavaScript */
    height: auto;
    width: 100%;
}



.blank-space {
    /* Adjust this value to control spacing */
    height: 0.5em;
}

/*
 * Blog post image sizing - add this to style-ssg.css
 */
.blog-image img {
    border-radius: 4px;
    display: block;
    width:100%;
}

.notyet {
    background: #ddd;
}

.notyet .tag {
    background: #ccc;
    cursor: default;
    pointer-events: none;
}

.notyet a {
    cursor: default;
    pointer-events: none;
}

blockquote {
    background: #f5f0eb;
    border-left: 8px solid #c9a882;
    padding: 20px 25px;
    margin: 10px 0px;
    color: #4a4035;
    border-radius: 3px;
}

/* Use it only on hover */
.discord-link {
    background: #4A5568;
    transition: background 0.2s ease;
}
.discord-link:hover {
    background: #5865F2;
}

.cta a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cta a:hover {
  background-color: #0056b3;
}

table {
  border-collapse: collapse;
  width: auto;
  margin-bottom: 10px;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

thead {
  background-color: #f5f5f5;
  font-weight: 600;
    width: auto;
}

tr:hover {
  background-color: #fafafa;
}

.cta {
  display: inline-block;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.cta:hover {
  text-decoration: underline;
}

