/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border, #333);
    border-radius: 4px;
    padding: 1.25rem;
    transition: border-color 0.2s;
}

.project-card:hover {
    border-color: var(--accent, #6ea8fe);
}

.project-card.featured {
    border-color: var(--accent, #6ea8fe);
    border-width: 2px;
}

.project-card .project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.project-card h3 {
    font-size: 1rem;
    margin: 0;
}

.project-card h3 a {
    color: var(--accent, #6ea8fe);
}

.project-card .language {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    background: var(--border, #333);
    color: var(--text-muted, #888);
    white-space: nowrap;
}

.project-card .description {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.project-card .stars {
    font-size: 0.8rem;
    color: #f0c14b;
}

/* Pay Methods */
.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
}

.pay-card {
    background: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border, #333);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    transition: border-color 0.2s;
}

.pay-card:hover {
    border-color: var(--accent, #6ea8fe);
}

.pay-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-icon svg {
    width: 22px;
    height: 22px;
}

.pay-icon.paypal {
    background: rgba(0, 48, 135, 0.3);
    color: #00457C;
}

.pay-icon.venmo {
    background: rgba(0, 141, 239, 0.2);
    color: #008CFF;
}

.pay-icon.cashapp {
    background: rgba(0, 214, 50, 0.2);
    color: #00D632;
}

.pay-icon.btc {
    background: rgba(247, 147, 26, 0.2);
    color: #F7931A;
}

.pay-icon.sol {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(20, 241, 149, 0.2));
    color: #14F195;
}

.pay-icon.eth {
    background: rgba(98, 126, 234, 0.2);
    color: #627EEA;
}

.pay-info {
    flex: 1;
    min-width: 0;
}

.pay-info h3 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
}

.pay-code {
    display: block;
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    color: var(--text-muted, #888);
    background: var(--border, #333);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    word-break: break-all;
}

.pay-code.pay-address {
    font-size: 0.7rem;
}

.pay-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin-top: 0.2rem;
}

.pay-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pay-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-family: var(--font-mono, monospace);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border, #333);
    background: transparent;
    color: var(--text, #e6e8ee);
    text-decoration: none;
}

.pay-btn:hover {
    background: var(--border, #333);
    color: var(--text, #e6e8ee);
}

/* QR Code Foldout */
.qr-foldout {
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--border, #333);
    padding-top: 1rem;
}

.qr-foldout[open] {
    display: block;
}

.qr-foldout:not([open]) {
    display: none;
}

.qr-foldout .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.qr-container {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: var(--border, #333);
    border-radius: 4px;
}

.qr-container svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 1;
}

.qr-container img {
    border-radius: 4px;
}

/* Video Embed */
.video-embed {
    max-width: 600px;
    margin: 2rem auto 0;
    aspect-ratio: 16 / 9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .pay-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .pay-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .pay-btn {
        flex: 1;
        text-align: center;
    }
}
