/* Recipe View Page Styles */

body {
    background: white;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.recipe-container {
    max-width: auto;
    margin: 20px auto;
}

.recipe-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.recipe-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.recipe-title {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 2.2em;
    font-weight: 700;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.meta-item {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.source-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.source-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.section-title {
    color: #667eea;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li {
    background: rgba(102, 126, 234, 0.05);
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.ingredients-list li:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.instructions-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
}

.instructions-list li {
    counter-increment: step-counter;
    background: rgba(102, 126, 234, 0.05);
    margin: 15px 0;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    position: relative;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.instructions-list li:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: -20px;
    top: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: inline-block;
}

.back-link:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Share Buttons */
.share-buttons {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.share-buttons h3 {
    color: #667eea;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.share-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    justify-content: center;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.pinterest {
    background: #bd081c;
    color: white;
}

.share-btn.copy {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.share-btn.copy:hover {
    background: rgba(102, 126, 234, 0.2);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.share-btn.threads {
    background: #000000;
    color: white;
}

.copy-feedback {
    display: none;
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-top: 10px;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -70px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-container {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .main-container {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 5px;
    }
    
    .recipe-meta {
        justify-content: flex-start;
    }
    
    .instructions-list li::before {
        left: -15px;
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .instructions-list li {
        margin-left: 20px;
        padding-left: 15px;
    }
    
    .share-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .share-btn {
        min-width: 200px;
    }
    
    .tooltip .tooltiptext {
        width: 120px;
        margin-left: -60px;
        font-size: 12px;
        padding: 8px;
        bottom: 110%;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 2px;
    }
}

@media (max-width: 360px) {
    .main-container {
        padding: 2px;
    }
}
