/* ═══════════════════════════════════════════
   PORTFOLIO — Gabriel Vita
   projects.css — projects, creative frameworks, copy gallery, AI, n8n carousel
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   OTHER PROJECTS
   ═══════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.project-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.project-card p:last-child {
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   COPY & CREATIVE
   ═══════════════════════════════════════════ */
.frameworks-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 40px;
}

.framework-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s;
}

.framework-card:hover {
    border-color: var(--accent);
}

.framework-card h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.fw-author {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.framework-card p:last-child {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.creative-examples-title {
    font-size: 1.2rem;
    margin-bottom: 24px;
}

/* Copy topic gallery */
.copy-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.copy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.copy-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--glow-sm);
}

.copy-card-cover {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #111;
}

.copy-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}

.copy-card:hover .copy-cover-img {
    transform: scale(1.03);
}

.copy-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
}

.copy-niche-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-light);
}

.copy-card-body {
    padding: 20px;
}

.copy-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.copy-card-body p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
}

.copy-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.copy-card-btn:hover {
    background: var(--accent-glow);
    color: #fff;
}

.copy-card-placeholder {
    border: 1px dashed var(--border-light);
    background: rgba(245, 158, 11, 0.05);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    line-height: 1.3;
    text-align: center;
}

.copy-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copy-placeholder-icon {
    font-size: 2rem;
    color: var(--border-light);
    line-height: 1;
}

.copy-placeholder-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   AI & AUTOMATION
   ═══════════════════════════════════════════ */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 32px;
}

.ai-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.ai-card-header {
    margin-bottom: 16px;
}

.ai-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.ai-card h3 {
    font-size: 1.15rem;
}

.ai-card p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.ai-screenshot {
    margin-top: 16px;
}

/* n8n carousel */
.n8n-carousel {
    position: relative;
    margin-top: 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

.n8n-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.n8n-slide {
    min-width: 100%;
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #0d0d0d;
}

.n8n-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}

.n8n-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.n8n-prev {
    left: 10px;
}

.n8n-next {
    right: 10px;
}

.n8n-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.n8n-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.n8n-dot.active {
    background: var(--accent-light);
    transform: scale(1.3);
}

.ai-bottom-note {
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--accent-glow);
}

.ai-bottom-note p {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.ai-bottom-note p:last-child {
    margin-bottom: 0;
}
