/* 
 * Wellness Deals - Main Stylesheet
 * A modern, responsive stylesheet for the Wellness Deals platform
 */

/* Base Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5fdfd;
    color: #003c40;
}

h1, h2, h3, h4, h5, h6 {
    color: #004466;
}

/* Custom Primary Color - Adjust Bootstrap Theme */
.btn-primary, .bg-primary {
    background-color: #007b7f !important;
    border-color: #007b7f !important;
}

.btn-outline-primary {
    color: #007b7f !important;
    border-color: #007b7f !important;
}

.btn-outline-primary:hover {
    background-color: #007b7f !important;
    color: white !important;
}

.text-primary {
    color: #007b7f !important;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: none;
    font-weight: 500;
}

/* Deal Cards */
.deal-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.deal-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.deal-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.deal-card .card-text {
    color: #666;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* Deal Badges */
.sponsor-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.boost-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.top-deal-badge {
    position: absolute;
    top: 45px;
    right: 10px;
    z-index: 10;
}

.new-deal-badge {
    position: absolute;
    top: 45px;
    left: 10px;
    z-index: 10;
}

.urgent-badge {
    position: absolute;
    bottom: 210px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

/* Countdown Styling */
.countdown-wrapper {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.countdown-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.count {
    font-size: 1.25rem;
    font-weight: bold;
    color: #004466;
}

.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #666;
}

/* Detail countdown formats with days/hours */
.detail-countdown {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    transition: color 0.3s, background-color 0.3s;
}

.detail-countdown.warning {
    color: #ff9800;
}

.detail-countdown.urgent {
    color: #dc3545;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Filter Styles */
.filter-form .form-select, .filter-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .countdown {
        gap: 5px;
    }
    
    .count {
        font-size: 1rem;
    }
    
    .label {
        font-size: 0.6rem;
    }
    
    .deal-card .card-img-top {
        height: 150px;
    }
}

/* Animated Elements */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Table Improvements */
.table th {
    background-color: rgba(0, 123, 127, 0.1);
    border-bottom: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 127, 0.05);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Expired Deal Styling */
.expired-deal .card-img-top {
    filter: grayscale(70%);
}

.expired-deal .countdown {
    color: #dc3545;
}

/* Deal Detail Page Styles */
.deal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-left: 20px;
    color: #007b7f;
}

.logo span {
    color: #004d4d;
}

.deal-detail-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image-container img {
    width: 100%;
    display: block;
}

.badge-group {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.badge.hot { background: #e74c3c; }
.badge.nieuw { background: #009688; }
.badge.sponsor { background: gold; color: #333; }
.badge.urgent { background: #dc3545; color: white; }

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: #007b7f;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 18px;
}

.info-block {
    background: #e0f2f1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.description {
    margin-top: 25px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.checklist {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.checklist li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checklist li::before {
    content: '✔ ';
    color: #009688;
    font-weight: bold;
}

.booking-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timer-box {
    background: #004d4d;
    color: white;
    font-size: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

input[type="text"], input[type="email"] {
    padding: 12px;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.book-button {
    background: #009688;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.book-button:hover {
    background: #00796b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.spots-left {
    font-size: 14px;
    margin-top: 10px;
    color: #d9534f;
    text-align: center;
}

.price-summary {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.share-section {
    margin-top: 30px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share {
    padding: 10px 20px;
    background: #007b7f;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share:hover {
    background: #006266;
    transform: translateY(-2px);
}

.partner-section {
    background: #f0f0f0;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.back-link, .back-button {
    display: inline-block;
    margin-top: 30px;
    font-size: 16px;
    color: #007b7f;
    text-align: center;
    width: 100%;
    text-decoration: none;
}

.back-link:hover, .back-button:hover {
    color: #006266;
}

/* Responsive adjustments for detail page */
@media (max-width: 600px) {
    .deal-detail-container {
        padding: 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}