/* ========================================
   BUILD LOG PAGE - Page-Specific Styles
   Shared styles moved to base.css
   ======================================== */

/* Page Background (optional override if needed) */
body.buildlog-page {
    background-color: #0a0a0a;
    color: #e5e7eb;
}

/* Hero Section */
.buildlog-hero {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.buildlog-hero-container {
    background: var(--mv-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mv-glass-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
    overflow: visible;
    animation: subtleFloat 6s ease-in-out infinite;
}

/* Animated gradient border */
.buildlog-hero-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 215, 0, 0.2), rgba(255, 105, 180, 0.2));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

/* Animated glow effect */
.buildlog-hero-container::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 215, 0, 0.1));
    filter: blur(20px);
    opacity: 0.3;
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.01);
    }
}

.buildlog-hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.buildlog-hero-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.2));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.buildlog-hero-image:hover {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 6px 16px rgba(255, 105, 180, 0.3));
}

.buildlog-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 500px;
    z-index: 1;
}

.buildlog-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(90deg, #ff69b4, #ffd700, #ff69b4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.3;
    animation: gradientText 5s linear infinite;
    filter: drop-shadow(0 2px 6px rgba(255, 105, 180, 0.2));
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.buildlog-hero-description {
    font-size: 0.95rem;
    color: var(--mv-text-muted);
    line-height: 1.6;
    margin: 0;
}

.buildlog-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 350px;
}

.buildlog-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.buildlog-hero-btn::after {
    display: none !important;
}

.buildlog-hero-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.buildlog-hero-btn-primary {
    background: linear-gradient(135deg, #ff69b4 0%, #ffd700 100%);
    color: white !important;
    box-shadow: 0 2px 12px rgba(255, 105, 180, 0.3);
}

.buildlog-hero-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4);
    color: white !important;
}

.buildlog-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--mv-text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.buildlog-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 105, 180, 0.3);
    transform: translateY(-1px);
    color: var(--mv-text-primary) !important;
}

@media (min-width: 640px) {
    .buildlog-hero-container {
        padding: 2.5rem 2rem;
        gap: 1.75rem;
    }

    .buildlog-hero-image {
        width: 140px;
        height: 140px;
    }

    .buildlog-hero-title {
        font-size: 1.75rem;
    }

    .buildlog-hero-description {
        font-size: 1rem;
    }

    .buildlog-hero-buttons {
        flex-direction: row;
        max-width: none;
        gap: 1rem;
    }

    .buildlog-hero-btn {
        flex: 1;
        padding: 0.875rem 1.75rem;
    }
}

@media (min-width: 768px) {
    .buildlog-hero-container {
        padding: 2.5rem 2.5rem;
        gap: 2rem;
        flex-direction: row;
        text-align: left;
    }

    .buildlog-hero-image-wrapper {
        flex-shrink: 0;
    }

    .buildlog-hero-image {
        width: 160px;
        height: 160px;
    }

    .buildlog-hero-content {
        align-items: flex-start;
        flex: 1;
    }

    .buildlog-hero-title {
        font-size: 1.875rem;
    }

    .buildlog-hero-buttons {
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .buildlog-hero-container {
        padding: 3rem;
    }

    .buildlog-hero-image {
        width: 180px;
        height: 180px;
    }
}

/* Timeline Container */
.buildlog-timeline {
    position: relative;
    padding-left: 0;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Archive Section */
.buildlog-archive {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* Timeline Entry */
.buildlog-entry {
    margin-bottom: 3rem;
}

.buildlog-entry.hidden {
    display: none;
}

/* Automatic fade-in animation for buildlog entries */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buildlog-entry.fade-in {
    /* Override base.css transition to allow animation */
    transition: none;
    /* Ensure initial state from base.css is maintained */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered fade-in animation delays */
.buildlog-entry.fade-in:nth-child(1) { animation-delay: 0s; }
.buildlog-entry.fade-in:nth-child(2) { animation-delay: 0.1s; }
.buildlog-entry.fade-in:nth-child(3) { animation-delay: 0.2s; }
.buildlog-entry.fade-in:nth-child(4) { animation-delay: 0.3s; }
.buildlog-entry.fade-in:nth-child(5) { animation-delay: 0.4s; }
.buildlog-entry.fade-in:nth-child(6) { animation-delay: 0.5s; }

/* Use standard .mv-card with additional styles */
.buildlog-entry-card {
    overflow: hidden;
    cursor: pointer;
}

.buildlog-entry-card:hover {
    border-color: rgba(255, 105, 180, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.buildlog-entry-header {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.buildlog-entry-title {
    flex: 1;
}

.buildlog-entry-week {
    font-size: 1.375rem;
    font-weight: bold;
    color: #e5e7eb;
    margin-bottom: 0;
    display: block;
}

.buildlog-entry-date {
    font-size: 0.875rem;
    color: #9ca3af;
}

.buildlog-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.entry-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-product {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-marketing {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.tag-business {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.buildlog-entry-content {
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.buildlog-entry-body {
    padding: 1.5rem;
    text-align: left;
}

.buildlog-entry-body h4 {
    font-size: 1.125rem !important;
    margin-bottom: 1rem;
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.buildlog-entry-body h4.text-pink-400 {
    color: #f472b6 !important;
    border-bottom-color: rgba(236, 72, 153, 0.3);
}

.buildlog-entry-body h4.text-orange-400 {
    color: #fb923c !important;
    border-bottom-color: rgba(249, 115, 22, 0.3);
}

.buildlog-entry-body h4.text-blue-400 {
    color: #60a5fa !important;
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

.buildlog-entry-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.buildlog-entry-body > div {
    margin-bottom: 2rem;
}

.buildlog-entry-body > div:last-child {
    margin-bottom: 0;
}

.buildlog-entry-body li {
    color: #d1d5db;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.buildlog-entry-body li:before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0.15em;
    color: #ff69b4;
    font-size: 1.25rem;
    line-height: 1;
}

.buildlog-entry-body li:last-child {
    margin-bottom: 0;
}

.buildlog-entry-body a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.buildlog-entry-body a:hover {
    color: #fcd34d;
    text-decoration: underline;
}

/* Empty State */
.buildlog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.buildlog-empty svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

.buildlog-empty p {
    font-size: 1.0625rem;
}

/* Load More Button */
.buildlog-load-more {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    border-color: #ff69b4;
    color: #ff69b4;
}

/* CTA Section */
.buildlog-cta {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 4rem auto 0;
    max-width: 48rem;
}

.buildlog-cta h3 {
    font-size: 1.5rem;
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.buildlog-cta p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.buildlog-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .buildlog-cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
}

.cta-btn::after {
    display: none !important;
}

.cta-btn-primary {
    background: linear-gradient(90deg, #ff69b4, #ffd700);
    color: white !important;
    box-shadow: 0 0 1rem rgba(255, 105, 180, 0.3);
}

.cta-btn-primary:hover {
    transform: scale(1.05);
    text-decoration: none !important;
    color: white !important;
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none !important;
    color: #e5e7eb !important;
}

/* Enhanced Responsive */
@media (max-width: 768px) {
    .buildlog-entry-header {
        padding: 1rem;
        gap: 0.75rem;
    }

    .buildlog-entry-body {
        padding: 1rem;
    }

    .buildlog-entry-body li {
        font-size: 0.95rem;
        padding-left: 1.25rem;
    }

    .buildlog-entry-tags {
        margin-top: 0.5rem;
    }

    .entry-tag {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .buildlog-entry-week {
        font-size: 1.1rem;
    }

    .buildlog-entry-date {
        font-size: 0.8rem;
    }

    .buildlog-cta {
        padding: 1.5rem;
    }

    .buildlog-cta h3 {
        font-size: 1.25rem;
    }

    .buildlog-cta p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .buildlog-entry-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .buildlog-entry-body li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .buildlog-cta {
        margin: 3rem auto 0;
        padding: 1.5rem;
    }

    .buildlog-cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }
}
