:root {
    --primary-color: #fe2c55;
    --secondary-color: #25f4ee;
    --background-color: #000000;
    --text-color: #ffffff;
    --card-bg: #1f1f1f;
    --modal-bg: rgba(0, 0, 0, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
}

.recipe-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.recipe-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-thumbnail {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.recipe-info {
    padding: 15px;
}

.recipe-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.recipe-description {
    font-size: 0.9rem;
    color: #888;
}

.recipe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

.recipe-details {
    margin-top: 20px;
}

.recipe-video {
    width: 100%;
    aspect-ratio: 9/16;
    margin: 20px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ingredients, .instructions {
    margin: 20px 0;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ingredients-list, .instructions-list {
    padding-left: 20px;
}

.ingredients-list li, .instructions-list li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .recipe-feed {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    h1 {
        font-size: 2rem;
    }
}

/* TikTok-style animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.recipe-card:hover .recipe-thumbnail {
    animation: pulse 1s infinite;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.3);
}

.search-input::placeholder {
    color: #666;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(254, 44, 85, 0.1);
}

.search-result-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-description {
    font-size: 0.9rem;
    color: #888;
}

.recipe-media {
    position: relative;
    width: 100%;
    margin: 20px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.recipe-media iframe {
    width: 100%;
    aspect-ratio: 9/16;
    border: none;
}

.recipe-thumbnail-large {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
} 