/* Compliance Banner */
.compliance-banner {
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    color: #000;
    text-align: center;
    padding: 12px;
    font-weight: 800;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* General page styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
}

header h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

header p {
    font-size: 1.2rem;
    color: #94a3b8;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* The grid that holds the app cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Individual app card styles */
.app-card {
    background-color: transparent;
    height: 480px;
    perspective: 1000px;
    border: none;
    position: relative;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.app-card.is-flipped .card-inner,
.card-inner.is-flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-front:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Badges */
.coming-soon-badge,
.updated-badge,
.testing-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.coming-soon-badge {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.updated-badge {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
}

.testing-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: white;
}

/* Card Status Styling */
.app-card.coming-soon .card-front {
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.app-card.updated .card-front {
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.app-card.testing .card-front {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Logo container */
.app-logo {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* Unclickable state */
.card-link.disabled {
    cursor: default;
    pointer-events: none;
}

.app-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.card-front:hover .app-logo img {
    transform: scale(1.05);
}

#chef-is-card .app-logo img {
    width: 75%;
    height: 75%;
}

/* App Info */
.app-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-back {
    transform: rotateY(180deg);
    padding: 30px;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.card-back h3 {
    margin-top: 0;
    color: #60a5fa;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.card-back p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 60px;
    color: #64748b;
    padding-bottom: 20px;
}

/* Development Timeline Styles */
.dev-timeline {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.dev-timeline h2 {
    text-align: center;
    color: #e2e8f0;
    margin-bottom: 50px;
    font-size: 2.2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.timeline-event {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    min-height: 100px;
}

.timeline-event:nth-child(odd) {
    flex-direction: row;
}

.timeline-event:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    margin: 0 30px;
    order: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    z-index: 2;
}

.timeline-content {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 350px;
    order: 3;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
}

.timeline-event:nth-child(odd) .timeline-content {
    margin-right: 50px;
}

.timeline-event:nth-child(even) .timeline-content {
    margin-left: 50px;
}

.timeline-content strong {
    color: #60a5fa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.timeline-content h4 {
    margin: 0 0 10px 0;
    color: #f1f5f9;
    font-size: 1.1rem;
}

.timeline-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Card Actions Styles */
.card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: auto;
}

.details-btn,
.snippets-btn,
.back-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.snippets-btn {
    background: linear-gradient(135deg, #10b981, #059669);
}

.details-btn:hover,
.back-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
}

.snippets-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1e293b;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #f1f5f9;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    max-height: calc(85vh - 90px);
    overflow-y: auto;
}

.snippet-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #10b981;
    transition: transform 0.2s ease;
}

.snippet-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.snippet-date {
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snippet-content {
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .timeline-container::before {
        left: 20px;
    }

    .timeline-event {
        flex-direction: row !important;
        margin-left: 40px;
    }

    .timeline-date {
        margin: 0 10px 0 0;
        order: 3;
    }

    .timeline-content {
        width: auto;
        max-width: none;
        margin: 0 !important;
    }

    .app-card {
        height: 520px;
    }

    /* Taller on mobile for content */
}