/* ========================================
   HOW TO USE PAGE STYLES
   Uses Global Theme System Variables
   ======================================== */

/* Override new-style-optimized.css grid layout - use simple block layout for content pages */
.app-container {
    visibility: visible !important;
    display: block !important;
    grid-template-areas: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    min-height: 100vh;
}

/* Override header grid area positioning */
.header {
    grid-area: unset !important;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

/* Main Content Area */
.how-to-use-main {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    line-height: 1.7;
}

.how-to-use-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: var(--theme-primary);
}

.how-to-use-intro {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--theme-text-secondary);
    font-style: italic;
}

.how-to-use-section-title {
    color: var(--theme-primary);
    margin: 35px 0 20px 0;
}

/* Info Boxes - Using Global Theme Variables */
.info-box {
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
}

.info-box-warning {
    border-left: 4px solid var(--theme-warning);
}

.info-box-success {
    border-left: 4px solid var(--theme-success);
}

.info-box-danger {
    border-left: 4px solid var(--theme-danger);
}

.info-box-info {
    border-left: 4px solid var(--theme-primary);
}

.info-box p {
    margin: 10px 0 0 0;
}

.info-box p:first-child {
    margin: 0;
}

.info-title {
    margin: 0;
    font-weight: 600;
    color: var(--theme-text-primary);
}

/* Info Box Headers */
.info-box h3,
.info-box h4 {
    margin-top: 0;
    color: var(--theme-primary);
}

/* Content Cards */
.content-card {
    background: var(--theme-bg-secondary);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--theme-border);
}

.content-card.text-center {
    text-align: center;
}

.content-card h3,
.content-card h4 {
    margin-top: 0;
    color: var(--theme-primary);
}

.content-card p {
    color: var(--theme-text-secondary);
}

.content-card p:first-child {
    margin-top: 0;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card ul {
    margin: 0;
    padding-left: 20px;
}

.content-card li {
    font-size: 0.9em;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.grid-item {
    background: var(--theme-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--theme-border);
}

.grid-item h4 {
    margin-top: 0;
    color: var(--theme-primary);
}

.grid-item p {
    font-size: 0.9em;
    color: var(--theme-text-secondary);
    margin-bottom: 15px;
}

.grid-item ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em;
}

/* Code Example Box */
.code-example {
    background: var(--theme-bg-tertiary);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--theme-text-primary);
}

.code-example p {
    margin: 0;
}

/* Tip Box */
.tip-box {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
    padding: 15px;
    background: var(--theme-bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--theme-border);
}

.tip-badge {
    background: var(--theme-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.tip-text {
    color: var(--theme-text-secondary);
}

/* Mistake/Error Items Grid */
.mistakes-grid {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.mistake-item {
    background: var(--theme-bg-secondary);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--theme-danger);
    border: 1px solid var(--theme-border);
    border-left: 4px solid var(--theme-danger);
}

.mistake-title {
    margin: 0;
    font-weight: 600;
    color: var(--theme-danger);
}

.mistake-description {
    margin: 5px 0 0 0;
    color: var(--theme-text-secondary);
    font-size: 0.9em;
}

/* CTA Section */
.cta-section {
    background: var(--theme-bg-secondary);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid var(--theme-border);
}

.cta-section h3 {
    margin-top: 0;
    color: var(--theme-primary);
}

.cta-section p {
    margin-bottom: 20px;
    color: var(--theme-text-secondary);
}

.cta-button {
    background: var(--theme-primary);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: var(--theme-primary-hover);
    text-decoration: none;
    color: white;
}

/* Navigation Links */
.nav-link {
    margin-right: 20px;
    text-decoration: none;
    color: var(--theme-text-primary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--theme-primary);
}

.nav-link.active {
    color: var(--theme-primary);
    font-weight: 600;
}

/* Footer Links */
.footer-links {
    text-align: center;
    color: var(--theme-text-secondary);
    font-size: 0.9em;
}

.footer-links a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--theme-primary-hover);
    text-decoration: underline;
}

/* Theme-aware links within content (but not buttons) */
.how-to-use-main a:not(.cta-button) {
    color: var(--theme-primary);
    text-decoration: none;
}

.how-to-use-main a:not(.cta-button):hover {
    text-decoration: underline;
}

/* Lists */
.styled-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.styled-list li {
    margin-bottom: 10px;
}

.two-column-list {
    columns: 2;
    column-gap: 30px;
}

/* Text Utilities */
.text-bold {
    font-weight: 600;
}

/* Horizontal Rule */
.content-divider {
    margin: 40px 0;
    border: none;
    border-top: 1px solid var(--theme-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-to-use-main {
        margin: 20px auto;
        padding: 15px;
    }

    .how-to-use-title {
        font-size: 1.8em;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .two-column-list {
        columns: 1;
    }

    .tip-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Logo and Header Styles */
.logo-title-container a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 36px;
    margin-right: 12px;
}

.logo-title {
    margin: 0;
    font-size: 18px;
    font-weight: inherit;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cta-button,
    .nav-link,
    .footer-links a {
        transition: none;
    }
}
