/* Import CSS variables from main.css */
:root {
    --ink: #0b0b0f;
    --paper: #fff8ef;
    --cobalt: #2653FF;
    --coral: #FF5A5F;
    --mango: #FFB000;
    --mint: #22C7A9;
    --fuchsia: #FF2AB4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
}

/* Mobile optimizations */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(38, 83, 255, 0.2);
    scroll-behavior: smooth;
}

* {
    -webkit-tap-highlight-color: rgba(38, 83, 255, 0.2);
}

/* Ensure touch-friendly buttons */
button, a, input[type="submit"] {
    touch-action: manipulation;
}

/* Blog Navigation */
.blog-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.back-link {
    color: var(--gray-800);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: var(--cobalt);
}

/* Vote Page */
.vote-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
    background: var(--paper);
}

.vote-header {
    margin-bottom: 4rem;
}

.vote-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 2rem;
    color: var(--ink);
    text-align: center;
}

/* Status Banner */
.status-banner {
    background: linear-gradient(135deg, var(--mint) 0%, var(--cobalt) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    border: 3px solid var(--ink);
    box-shadow: 8px 8px 0 var(--ink);
    position: relative;
}

.status-banner h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.status-message {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    opacity: 0.95;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.banner-btn {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: 3px solid var(--ink);
}

.banner-btn-primary {
    background: white;
    color: var(--ink);
}

.banner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.banner-btn-secondary {
    background: white;
    color: var(--ink);
}

.banner-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.banner-btn-support {
    background: var(--mango);
    color: var(--ink);
    border-color: var(--ink);
}

.banner-btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.countdown-container {
    margin-top: 1rem;
}

.countdown-label {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-unit {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    min-width: 85px;
    border: 3px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.countdown-unit .countdown-value {
    color: var(--ink);
}

.countdown-unit .countdown-label {
    color: var(--gray-800);
}

.countdown-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-unit .countdown-label {
    display: block;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
    text-transform: lowercase;
}

.countdown-complete {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* How It Works */
.how-it-works {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 3px solid var(--cobalt);
    box-shadow: 8px 8px 0 var(--cobalt);
    margin-bottom: 3rem;
}

.how-it-works h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
}

.how-it-works .intro {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
    line-height: 1.7;
}

.how-it-works ol {
    margin: 0;
    padding-left: 1.75rem;
}

.how-it-works li {
    margin-bottom: 0.85rem;
    line-height: 1.7;
    color: var(--gray-800);
    font-size: 1.0625rem;
}

.how-it-works li:last-child {
    margin-bottom: 0;
}

.how-it-works strong {
    color: var(--cobalt);
    font-weight: 600;
}

.how-it-works .note {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--gray-200);
    font-size: 0.9375rem;
    color: var(--gray-800);
}

/* Ideas Grid */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.idea-card {
    background: white;
    border: 3px solid var(--ink);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: var(--cobalt);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.idea-card:hover::before {
    transform: scaleX(1);
}

.idea-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 0 var(--ink);
}

.idea-card.winner {
    border-color: var(--mint);
}

.idea-card.winner::before {
    background: var(--mint);
    transform: scaleX(1);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.idea-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.winner-badge {
    background: var(--mint);
    color: var(--ink);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    border: 2px solid var(--ink);
}

.prototype-screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 2px solid var(--gray-200);
}

.idea-description {
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.idea-reference {
    margin-bottom: 1.25rem;
}

.reference-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cobalt);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    background: var(--paper);
    border: 2px solid var(--cobalt);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.reference-link:hover {
    background: var(--cobalt);
    color: white;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--cobalt);
}

/* Vote Section */
.vote-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vote-progress {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.65rem;
    border: 2px solid var(--ink);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cobalt) 0%, var(--mint) 100%);
    transition: width 0.5s ease;
}

.progress-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

/* Vote Button */
.vote-btn {
    background: var(--ink);
    border: 3px solid var(--ink);
    color: var(--paper);
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vote-btn svg {
    width: 20px;
    height: 20px;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--ink);
}

.vote-btn.active {
    background: var(--cobalt);
    border-color: var(--cobalt);
    color: white;
}

.vote-btn.active:hover {
    box-shadow: 4px 4px 0 var(--cobalt);
}

/* Notification Section */
.notification-section {
    background: var(--paper);
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.25rem;
    border: 2px solid var(--gray-200);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.voted-message {
    color: var(--mint);
    font-weight: 700;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.email-input {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1rem;
    border: 3px solid var(--ink);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.email-input:focus {
    outline: none;
    outline: 3px solid var(--mango);
    outline-offset: 2px;
}

.notify-btn {
    background: var(--cobalt);
    color: white;
    border: 3px solid var(--cobalt);
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 var(--cobalt);
}

.email-saved {
    color: var(--gray-800);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.no-ideas {
    text-align: center;
    color: var(--gray-800);
    padding: 4rem 2rem;
    font-size: 1.125rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* Completed Projects Section */
.completed-projects {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--mint);
    border-radius: 24px;
    border: 4px solid var(--ink);
    box-shadow: 12px 12px 0 var(--ink);
    position: relative;
}

.completed-projects::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-200) 20%, var(--gray-200) 80%, transparent 100%);
}

.completed-projects h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.completed-project-card {
    background: white;
    border: 3px solid var(--ink);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 8px 8px 0 var(--ink);
    transition: all 0.3s ease;
}

.completed-project-card:last-child {
    margin-bottom: 0;
}

.completed-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 12px 12px 0 var(--ink);
}

.completed-project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.project-date {
    color: var(--mint);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-date::before {
    content: '📅';
}

.project-flow-image {
    width: 100%;
    border-radius: 16px;
    border: 3px solid var(--gray-200);
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0 var(--gray-200);
}

.project-description {
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--cobalt);
    color: white;
    border: 3px solid var(--ink);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-btn:hover {
    background: var(--mint);
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--ink);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ideas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .notify-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .blog-nav {
        padding: 1rem 1rem 0.5rem;
    }

    .back-link {
        font-size: 0.95rem;
        min-height: 48px;
    }

    .vote-page {
        padding: 1rem 1rem 3rem;
    }

    .vote-header {
        margin-bottom: 2rem;
    }

    .ideas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vote-header h1 {
        font-size: 1.75rem;
        margin-top: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .status-banner {
        padding: 1.5rem 1rem;
        border-width: 2px;
    }

    .status-banner h2 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .status-message {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .banner-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .banner-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        min-height: 48px;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-unit {
        min-width: 65px;
        padding: 0.75rem 0.75rem;
        border-width: 2px;
    }

    .countdown-value {
        font-size: 1.35rem;
    }

    .countdown-unit .countdown-label {
        font-size: 0.75rem;
    }

    .how-it-works {
        padding: 1.25rem;
        border-width: 2px;
    }

    .how-it-works h2 {
        font-size: 1.25rem;
    }

    .how-it-works .intro {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .how-it-works li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .idea-card {
        padding: 1.25rem;
        border-width: 2px;
    }

    .idea-card::before {
        height: 4px;
    }

    .idea-card h3 {
        font-size: 1.2rem;
    }

    .idea-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .reference-link {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }

    .prototype-screenshot {
        height: 160px;
        border-width: 2px;
    }

    .vote-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .progress-bar {
        height: 12px;
        border-width: 2px;
        margin-bottom: 0.5rem;
    }

    .progress-text {
        font-size: 0.85rem;
    }

    .vote-btn {
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        border-width: 2px;
    }

    .vote-btn svg {
        width: 18px;
        height: 18px;
    }

    .notification-section {
        padding: 1rem;
        margin-top: 1rem;
        border-width: 2px;
    }

    .voted-message {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .email-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .email-input {
        padding: 1rem;
        font-size: 1rem;
        border-width: 2px;
        min-height: 48px;
    }

    .notify-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        border-width: 2px;
    }

    .email-saved {
        font-size: 0.9rem;
    }

    .idea-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .winner-badge {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
        border-width: 2px;
    }

    .no-ideas {
        padding: 3rem 1.5rem;
        font-size: 1rem;
    }

    /* Completed Projects */
    .completed-projects {
        margin-top: 3rem;
        padding: 2rem 1.25rem;
        border-width: 3px;
        border-radius: 20px;
        box-shadow: 8px 8px 0 var(--ink);
    }

    .completed-projects h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .completed-project-card {
        padding: 1.5rem;
        border-width: 2px;
        box-shadow: 6px 6px 0 var(--ink);
        margin-bottom: 1.5rem;
    }

    .completed-project-card h3 {
        font-size: 1.5rem;
    }

    .project-date {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .project-flow-image {
        border-width: 2px;
        margin-bottom: 1.25rem;
    }

    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .project-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-width: 2px;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
    }

    footer p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    footer a {
        font-size: 0.95rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .blog-nav {
        padding: 0.75rem 0.75rem 0.5rem;
    }

    .back-link {
        font-size: 0.9rem;
    }

    .vote-page {
        padding: 0.75rem 0.75rem 2.5rem;
    }

    .vote-header h1 {
        font-size: 1.5rem;
    }

    .status-banner {
        padding: 1.25rem 0.85rem;
    }

    .status-banner h2 {
        font-size: 1.2rem;
    }

    .banner-btn {
        font-size: 0.95rem;
        padding: 0.95rem 1.25rem;
    }

    .countdown {
        gap: 0.4rem;
    }

    .countdown-unit {
        min-width: 60px;
        padding: 0.65rem 0.5rem;
    }

    .countdown-value {
        font-size: 1.2rem;
    }

    .how-it-works {
        padding: 1rem;
    }

    .how-it-works h2 {
        font-size: 1.15rem;
    }

    .how-it-works .intro {
        font-size: 0.95rem;
    }

    .how-it-works li {
        font-size: 0.9rem;
    }

    .idea-card {
        padding: 1rem;
    }

    .idea-card h3 {
        font-size: 1.1rem;
    }

    .reference-link {
        font-size: 0.85rem;
        padding: 0.55rem 0.8rem;
    }

    /* Completed Projects */
    .completed-projects {
        margin-top: 2.5rem;
        padding: 1.5rem 1rem;
        border-radius: 16px;
        box-shadow: 6px 6px 0 var(--ink);
    }

    .completed-projects h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .completed-project-card {
        padding: 1.25rem;
        box-shadow: 4px 4px 0 var(--ink);
        margin-bottom: 1.25rem;
    }

    .completed-project-card h3 {
        font-size: 1.25rem;
    }

    .project-date {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .project-btn {
        padding: 0.95rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0.75rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    footer a {
        font-size: 0.9rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }
}
