/* Basic styling - will be enhanced with tweakcn.com theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header nav a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 2rem 0;
    text-align: center;
    color: #6c757d;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1 {
    margin-bottom: 1rem;
    color: #212529;
}

.lead {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.browse-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem 0;
    border-bottom: 2px solid #dee2e6;
}

.browse-tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s ease-in-out;
    font-weight: 500;
}

.browse-tab-btn:hover {
    color: #007bff;
}

.browse-tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.browse-content {
    display: none;
}

.browse-content.active {
    display: block;
}

.browse-content {
    margin-top: 3rem;
}

.browse-content h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.browse-content > p {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

.options-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.option-card, .generator-card, .product-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s, transform 0.2s;
    background: white;
}

.option-card:hover, .generator-card:hover, .product-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.option-card h2, .option-card h3,
.generator-card h2, .generator-card h3,
.product-card h2, .product-card h3 {
    margin-bottom: 0.5rem;
}

.option-card h2 a, .option-card h3 a,
.generator-card h2 a, .generator-card h3 a,
.product-card h2 a, .product-card h3 a {
    color: #007bff;
    text-decoration: none;
}

.option-card h2 a:hover, .option-card h3 a:hover,
.generator-card h2 a:hover, .generator-card h3 a:hover,
.product-card h2 a:hover, .product-card h3 a:hover {
    text-decoration: underline;
}

.generator-count,
.option-count {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

nav[aria-label="breadcrumb"] {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

nav[aria-label="breadcrumb"] a {
    color: #007bff;
    text-decoration: none;
}

nav[aria-label="breadcrumb"] a:hover {
    text-decoration: underline;
}

.generators-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

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

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

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: 0;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

#result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.format-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease-in-out;
}

.tab-btn:hover {
    color: #007bff;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.format-output {
    display: none;
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.format-output.active {
    display: block;
}

.format-output pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 1.5rem;
}

.config-instructions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.config-instructions h3 {
    margin-bottom: 1rem;
    color: #212529;
    font-size: 1.1rem;
}

.config-instructions p {
    margin-bottom: 1rem;
    color: #495057;
}

.config-instructions ol,
.config-instructions ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.config-instructions li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.config-instructions code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.config-instructions .code-block {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 1rem 0;
    overflow-x: auto;
}

.config-instructions strong {
    color: #212529;
    font-weight: 600;
}

.screenshot-placeholder {
    background: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    color: #856404;
}

.screenshot-placeholder p {
    margin: 0;
    font-style: italic;
}

.screenshot-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 0.5rem;
}
