/* Deal Page Specific Styles */

.deal-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #e74c3c;
    text-decoration: none;
}

.breadcrumb span {
    color: #666;
    margin: 0 0.5rem;
}

.deal-content {
    max-width: 1000px;
    margin: 0 auto;
}

.deal-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.deal-image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-image i {
    font-size: 4rem;
    color: #ccc;
}

.deal-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.store-brand { display:flex; align-items:center; gap:1rem; margin-bottom:.5rem; }
.store-logo { width:64px; height:64px; border-radius:8px; overflow:hidden; background:#f4f4f4; display:flex; align-items:center; justify-content:center; }
.store-logo img { width:100%; height:100%; object-fit:contain; }

.deal-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.deal-discount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

.deal-store {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.deal-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.code-box { display:flex; align-items:center; gap:.75rem; background:#f9fafb; border:1px dashed #e5e7eb; padding:.75rem 1rem; border-radius:8px; margin: 0 0 1rem; }
.code-label { font-weight:700; color:#111827; }
.code-value { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; background:#fff; border:1px solid #eee; padding:.4rem .6rem; border-radius:6px; }

.deal-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.get-deal-btn-large {
    flex: 1;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.get-deal-btn-large:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.copy-code-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-code-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

.deal-meta {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.meta-item i {
    color: #e74c3c;
}

.deal-details {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.details-section {
    margin-bottom: 2rem;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.details-section p {
    color: #555;
    line-height: 1.6;
}

.steps-list {
    color: #555;
    padding-left: 1.5rem;
}

.steps-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.terms-list {
    color: #555;
    padding-left: 1.5rem;
}

.terms-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.share-buttons { display:flex; flex-wrap:wrap; gap:.5rem; }
.share-btn { display:inline-flex; align-items:center; gap:.4rem; border:1px solid #eee; padding:.6rem 1rem; border-radius:8px; cursor:pointer; text-decoration:none; color:#333; }
.share-btn.twitter { color:#1DA1F2; border-color:#1DA1F222; }
.share-btn.facebook { color:#1877F2; border-color:#1877F222; }
.share-btn.linkedin { color:#0A66C2; border-color:#0A66C222; }
.share-btn.copy { color:#27ae60; border-color:#27ae6022; background:#f6fff9; }

.related-deals {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.related-deals h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.related-card .discount {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-card .store {
    color: #666;
    font-size: 0.9rem;
}

.error-content {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.error-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.error-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.back-home-btn {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-home-btn:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .deal-header {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .deal-image {
        height: 200px;
    }
    
    .deal-info h1 {
        font-size: 1.5rem;
    }
    
    .deal-actions {
        flex-direction: column;
    }
    
    .deal-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .deal-details,
    .related-deals {
        padding: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
