/* Global and Reset */
:root {
    --text-main: #333;
    --text-light: #666;
    --text-meta: #999;
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --primary-red: #ef4444; /* Standard red */
    --logo-red: #f43f5e;
    --openclaw-bg: rgba(255, 255, 255, 0.2);
    /* Badges */
    --badge-pending-bg: #e0f2fe;
    --badge-pending-text: #0284c7;
    --badge-wip-bg: #ffedd5;
    --badge-wip-text: #c2410c;
    --badge-done-bg: #dcfce7;
    --badge-done-text: #15803d;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-gray);
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon-bg {
    background: var(--logo-red);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transform: rotate(-10deg);
}

.logo-highlight {
    color: var(--primary-red);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background-color: #dc2626;
}

.btn-white {
    background-color: white;
    color: var(--primary-red);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-white:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.btn-dark-red {
    background-color: #881337;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-dark-red:hover {
    background-color: #70102b;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f02511 0%, #f59e0b 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.highlight-text {
    opacity: 0.85; /* Matches the slight transparency in the screenshot word styling */
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.openclaw-tag {
    background: var(--openclaw-bg);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.deco-lobster {
    position: absolute;
    font-size: 6rem;
    opacity: 0.15;
    right: 5%;
    top: 30%;
    transform: rotate(15deg);
    z-index: 1;
}

/* Board Section */
.board-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.board-title {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.3rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background: #111827;
    color: white;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.idea-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge.pending {
    background: var(--badge-pending-bg);
    color: var(--badge-pending-text);
}

.badge.wip {
    background: var(--badge-wip-bg);
    color: var(--badge-wip-text);
}

.badge.done {
    background: var(--badge-done-bg);
    color: var(--badge-done-text);
}

.author {
    color: var(--text-meta);
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f1f5f9;
    color: var(--text-light);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.stats {
    display: flex;
    gap: 1rem;
    color: var(--text-meta);
    font-size: 0.9rem;
    font-weight: 500;
}

.action-btn {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, transform 0.2s;
}

.action-btn.wip {
    background: #ffedd5;
    color: #c2410c;
}
.action-btn.wip:hover { background: #fed7aa; }

.action-btn.done {
    background: #dcfce7;
    color: #15803d;
}
.action-btn.done:hover { background: #bbf7d0; }

.action-btn.pending {
    background: #111827;
    color: white;
}
.action-btn.pending:hover { background: #000; }

/* Footer */
.footer {
    background: #171717;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 4px solid var(--primary-red);
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-slogan {
    color: #a3a3a3;
    margin-bottom: 2rem;
}

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

.footer-links a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(1);
    transition: transform 0.3s;
}
.modal-overlay.hidden .modal-content {
    transform: scale(0.95);
}
.modal-content h3 {
    margin-bottom: 1rem;
}
#imagination-input {
    width: 100%;
    height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    margin-bottom: 1.5rem;
    outline: none;
}
#imagination-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    padding: 0.6rem 1.2rem;
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    .nav-links { display: none; }
    .hero-title { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .cards-grid { grid-template-columns: 1fr; }
    .footer-links { flex-wrap: wrap; }
}
