/* Environment Detail Page Styles */

.environment-detail {
    padding: 2rem 0 4rem;
}

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.environment-detail h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.environment-content {
    max-width: 900px;
}

.environment-content h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.environment-content h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.environment-content h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.environment-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.environment-content ul {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.environment-content li {
    margin-bottom: 0.5rem;
}

.environment-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.environment-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.environment-content table thead {
    background: #667eea;
    color: white;
}

.environment-content table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid #5568d3;
}

.environment-content table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: #555;
}

.environment-content table tbody tr:hover {
    background-color: #f8f9fa;
}

.environment-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Code Styles */
.environment-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.environment-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.environment-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.environment-image-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #999;
}

.back-link {
    margin-top: 3rem;
}

.back-link a {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.back-link a:hover {
    transform: translateX(-4px);
    text-decoration: underline;
}

/* GIF Grid on Group Pages */
.gifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

/* For screens 1024px and wider, force 3 columns max */
@media (min-width: 1024px) {
    .gifs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For tablets, use 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .gifs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile, use 1 column */
@media (max-width: 767px) {
    .gifs-grid {
        grid-template-columns: 1fr;
    }
}

.gif-container {
    text-align: center;
}

.gif-container h3 {
    font-size: 0.95rem;
    color: #667eea;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.gif-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hero GIF on Group Pages */
.hero-gif {
    text-align: center;
    margin: 1.5rem 0;
}

.hero-gif img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Variant List on Group Pages */
.variant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.variant-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.variant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.variant-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.variant-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.variant-description {
    color: #667eea;
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* Category Page Styles */
.category-page-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.env-families-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.family-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.family-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.family-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.family-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.family-meta {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .environment-detail h1 {
        font-size: 1.8rem;
    }

    .environment-content h2 {
        font-size: 1.3rem;
    }

    .environment-content p,
    .environment-content ul {
        font-size: 1rem;
    }
}

