/* Reset body styles for internal pages */
.page-body {
    overflow: auto;
    background-color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.main-nav {
    background-color: #2a2a2a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f5f5;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #f5f5f5;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ffffff;
}

/* Main Content */
.page-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.single-page {
    background-color: #2a2a2a;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #3a3a3a;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #f5f5f5;
}

.subtitle {
    font-size: 1.25rem;
    color: #b5b5b5;
    font-style: italic;
}

.page-body-content {
    color: #e5e5e5;
    line-height: 1.7;
}

.page-body-content h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f5f5f5;
    scroll-margin-top: 6rem;
}

.page-body-content h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #f5f5f5;
    scroll-margin-top: 6rem;
}

.page-body-content p {
    margin-bottom: 1rem;
}

.page-body-content ul,
.page-body-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

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

.page-body-content a {
    color: #7fb3d5;
    text-decoration: none;
}

.page-body-content a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: #2a2a2a;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid #3a3a3a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #b5b5b5;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f5f5f5;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f5f5f5;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f5f5f5;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7fb3d5;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.submit-button {
    background-color: #7fb3d5;
    color: #1a1a1a;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background-color: #9fc5e5;
    transform: translateY(-2px);
}

/* Word Search Game */
.word-search-container {
    margin: 2rem 0;
}

.word-grid {
    display: grid;
    gap: 4px;
    justify-content: center;
    margin: 2rem 0;
    user-select: none;
}

.word-cell {
    width: 40px;
    height: 40px;
    background-color: #333;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}

.word-cell:hover {
    background-color: #444;
}

.word-cell.selected {
    background-color: #7fb3d5;
    color: #1a1a1a;
}

.word-cell.found {
    background-color: #5a9;
    color: #fff;
}

.word-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.word-list-item {
    padding: 0.5rem;
    background-color: #333;
    border-radius: 4px;
    text-align: center;
}

.word-list-item.found {
    background-color: #5a9;
    text-decoration: line-through;
}

/* Blog Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-preview {
    background-color: #333;
    padding: 2rem;
    border-radius: 8px;
}

.post-preview h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.post-preview h3 a {
    color: #f5f5f5;
    text-decoration: none;
}

.post-preview h3 a:hover {
    color: #7fb3d5;
}

.post-date {
    color: #b5b5b5;
    font-size: 0.9rem;
}

.post-summary {
    margin: 1rem 0;
    color: #d5d5d5;
    line-height: 1.6;
}

.read-more {
    color: #7fb3d5;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

.no-posts {
    background-color: #333;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.no-posts p {
    margin: 1rem 0;
}

.no-posts a {
    color: #7fb3d5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2a2a2a;
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

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

    .page-content {
        padding: 2rem 1rem;
    }

    .single-page {
        padding: 2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .word-cell {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
