/* Frontend Styles */
.wikinow-content {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wikinow-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.wikinow-content-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f1;
}

.wikinow-content-header h2 {
    margin: 0;
    font-size: 1.6em;
    color: #303134;
    font-weight: 600;
    line-height: 1.3;
}

.wikinow-content-body {
    line-height: 1.7;
    color: #2c3338;
    font-size: 1.05em;
}

.wikinow-content-body p {
    margin-bottom: 1.2em;
}

.wikinow-content-body ul,
.wikinow-content-body ol {
    margin-bottom: 1.2em;
    padding-left: 2.2em;
}

.wikinow-content-body li {
    margin-bottom: 0.8em;
    position: relative;
}

.wikinow-content-body ul li::before {
    content: "•";
    color: #2271b1;
    font-weight: bold;
    position: absolute;
    left: -1.2em;
}

.wikinow-content-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f1;
    font-size: 0.95em;
    color: #646970;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Loading State */
.wikinow-loading {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.wikinow-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #2271b1;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wikinow-spin 1s linear infinite;
}

@keyframes wikinow-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.wikinow-error {
    padding: 20px;
    background: #fef2f2;
    border: 2px solid #fee2e2;
    border-radius: 8px;
    color: #991b1b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wikinow-error::before {
    content: "⚠️";
    font-size: 1.2em;
}

/* Links */
.wikinow-content a {
    color: #2271b1;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.wikinow-content a:hover {
    color: #135e96;
    border-bottom-color: #135e96;
}

/* Code Blocks */
.wikinow-content pre {
    background: #f6f8fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.2em 0;
    border: 1px solid #e9ecef;
}

.wikinow-content code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    background: #f6f8fa;
    padding: 3px 6px;
    border-radius: 4px;
    color: #24292e;
}

/* Tables */
.wikinow-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.2em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wikinow-content th,
.wikinow-content td {
    padding: 12px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.wikinow-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #303134;
}

.wikinow-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* Accessibility Improvements */
.wikinow-content:focus-within {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.wikinow-content [role="button"] {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 4px;
    background: #2271b1;
    color: white;
    border: none;
    transition: background-color 0.2s ease;
}

.wikinow-content [role="button"]:hover {
    background: #135e96;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wikinow-content {
        background: #303134;
        color: #f0f0f1;
    }

    .wikinow-content-header h2 {
        color: #f0f0f1;
    }

    .wikinow-content-body {
        color: #f0f0f1;
    }

    .wikinow-content pre,
    .wikinow-content code {
        background: #2c3338;
        color: #f0f0f1;
    }

    .wikinow-content table {
        border-color: #2c3338;
    }

    .wikinow-content th,
    .wikinow-content td {
        border-color: #2c3338;
        color: #f0f0f1;
    }

    .wikinow-content th {
        background: #2c3338;
        color: #f0f0f1;
    }

    .wikinow-content tr:nth-child(even) {
        background: #2c3338;
    }
}

/* Responsive */
@media screen and (max-width: 782px) {
    .wikinow-content {
        margin: 20px 0;
        padding: 20px;
    }

    .wikinow-content-header h2 {
        font-size: 1.4em;
    }

    .wikinow-content-body {
        font-size: 1em;
    }

    .wikinow-content-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
} 