:root {
    --page-primary-color: var(--nasa-blue, #0a84ff);
    --page-accent-color: var(--nasa-red, #ff3b30);
    --page-text-color: var(--nasa-text, #1f2937); /* From globalstyle or fallback */
    --page-bg-light: #f7f9fc; /* A very light, clean background */
    --page-card-bg: #ffffff;
    --page-card-border: #e2e8f0;
    --page-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --page-card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.prompts-page-container {
    max-width: 1200px;
    margin: 0 auto; /* Centering content */
    padding: 30px 20px; /* Padding around the main content area */
}
.section-title {
    text-align: center;
    font-size: 2.5rem; /* Prominent title */
    font-weight: 700;
    color: var(--page-primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--page-accent-color);
    border-radius: 2px;
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555e6d; /* Softer than main text */
    margin-bottom: 3rem; /* Space before the grid */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.main-categories-section {
    margin-bottom: 4rem; /* Space below this section */
    margin-top: 6rem;
}
.main-categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem; /* Gap between cards */
}
@media (min-width: 640px) {
    .main-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .main-categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.main-category-card {
    background-color: var(--page-card-bg);
    border: 1px solid var(--page-card-border);
    border-radius: 12px; /* Softer, modern corners */
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--page-card-shadow);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, border-color 0.25s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px; /* Ensure cards have a decent height */
}
.main-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--page-card-hover-shadow);
    border-color: var(--page-primary-color);
}
.main-category-card .icon { /* Placeholder for potential icon */
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--page-primary-color);
    transition: color 0.25s ease-out;
}
.main-category-card h3 {
    font-size: 1.4rem; /* Card title size */
    font-weight: 600;
    color: var(--page-text-color);
    margin: 0;
    line-height: 1.3;
    transition: color 0.25s ease-out;
}
/* Active state for main category card */
.main-category-card.active {
    border-color: var(--page-accent-color); /* Example: highlight with accent color */
    transform: translateY(-6px) scale(1.03); /* Consistent with hover but persistent */
    box-shadow: var(--page-card-hover-shadow);
}
.main-category-card.active .icon {
    color: var(--page-accent-color);
}
.main-category-card.active h3 {
    color: var(--page-accent-color); /* Or var(--page-primary-color) if accent is too much for text */
}

.platforms-catalog-section {
    background-color: #f0f4f8; /* Slightly different background for this section */
    padding: 3rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}
.app-categories-grid {
    display: grid;
    /* Changed for better centering of fixed-width cards */
    grid-template-columns: repeat(auto-fit, 150px); /* Creates columns of 150px width */
    justify-content: center; /* Centers the group of columns within the grid container */
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.app-category-card {
    background: var(--page-card-bg);
    border: 1px solid var(--page-card-border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--page-text-color);
    box-shadow: var(--page-card-shadow);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
    min-height: 150px; /* Good minimum height, ensures consistency */
    width: 128px; /* Explicitly set width to match grid-template-columns */
}
.app-category-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--page-card-hover-shadow);
    color: var(--page-primary-color); /* Text color changes on hover */
    border-color: var(--page-primary-color);
}
.app-category-card img {
    width: 48px; /* Slightly larger for better visibility */
    height: 48px; /* Slightly larger */
    margin-bottom: 0.8rem;
    border-radius: 8px;
    object-fit: contain;
    background-color: #f0f3f7; /* Consistent light bg for transparent icons */
    padding: 5px; /* Consistent padding around icon */
    /* border: 1px solid var(--page-card-border); /* Optional: subtle border around icon */
}
.app-category-card span {
    font-size: 0.9rem; /* Adjusted for card width */
    font-weight: 500;
    line-height: 1.4;
    color: inherit; /* Inherits color change on hover from parent card */
}
.platforms-info-list-container {
    background-color: var(--page-card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--page-card-shadow);
}
.platforms-info-list-container h3 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--page-primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.platforms-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.platforms-info-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eef2f7; /* Lighter separator */
    line-height: 1.6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}
.platforms-info-list li:last-child {
    border-bottom: none;
}
.platforms-info-list li .platform-details {
    flex-grow: 1;
    margin-right: 1rem; /* Space before the link */
}
.platforms-info-list li strong {
    color: var(--page-text-color);
    font-weight: 600;
}
.platforms-info-list li a {
    display: inline-block;
    background-color: var(--page-primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap; /* Prevent link text from wrapping */
}
.platforms-info-list li a:hover {
    background-color: color-mix(in srgb, var(--page-primary-color) 80%, black);
    transform: translateY(-1px);
}
/* Class to hide elements via JavaScript */
.hidden {
    display: none !important;
}
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
    .main-category-card h3 { font-size: 1.25rem; }
    /* app-categories-grid will naturally adjust with auto-fit and justify-content */
    .app-category-card { 
        /* min-height: 130px; */ /* Adjusted if needed, but 150px should be fine */
        /* width: 130px; */ /* If you want smaller cards on smaller screens */
    }
    .platforms-info-list li { flex-direction: column; align-items: flex-start; }
    .platforms-info-list li .platform-details { margin-bottom: 0.5rem; margin-right: 0; }
     .platforms-info-list li a { width: 100%; text-align: center; }
}
@media (max-width: 480px) {
     .prompts-page-container { padding: 20px 15px; }
    .section-title { font-size: 1.75rem; }
    /* app-categories-grid will naturally adjust */
     .app-category-card {
        /* Adjust card size for very small screens if 150px is too large */
        /* width: 120px;  */
        /* min-height: 120px; */
     }
    .app-category-card img {
        width: 40px; /* Smaller icon on small screens */
        height: 40px;
    }
    .app-category-card span {
        font-size: 0.85rem;
    }
}

.creatorsbay-cta-container {
    text-align: center;
    margin-bottom: 2.2rem;
  }
  
  .creatorsbay-cta-btn {
    display: none;
    padding: 1rem 2.2rem;
    background: linear-gradient(90deg, var(--page-primary-color) 60%, var(--page-accent-color));
    color: #fff;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px -3px rgba(10, 132, 255, 0.18);
    transition: background 0.17s, transform 0.17s, box-shadow 0.18s;
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    top: 0;
  }
  .creatorsbay-cta-btn:hover {
    background: linear-gradient(90deg, var(--page-accent-color), var(--page-primary-color) 90%);
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px -6px rgba(10, 132, 255, 0.27);
    text-decoration: none;
  }
  