/* Main theme CSS for Selling Host */

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Ad-specific styles */
.ad-single .ad-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.ad-single .ad-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
}

.ad-single .ad-location,
.ad-single .ad-condition {
    background: #f1f1f1;
    padding: 5px 10px;
    border-radius: 4px;
}

.ad-details ul {
    list-style: none;
    padding: 0;
}

.ad-details ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.ad-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.save-ad-btn, .contact-seller-btn, .login-required-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.save-ad-btn {
    background: #3498db;
    color: white;
}

.save-ad-btn.saved {
    background: #c034cb;
}

.contact-seller-btn, .login-required-btn {
    background: #c034cb;
    color: white;
}

/* Coupon-specific styles */
.coupon-single .coupon-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.coupon-single .coupon-discount {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    background: #fff8e1;
    padding: 5px 15px;
    border-radius: 4px;
}

.coupon-single .coupon-expiry {
    color: #777;
}

.coupon-details ul {
    list-style: none;
    padding: 0;
}

.coupon-details ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.coupon-code {
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
}

.coupon-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.apply-coupon-btn {
    background: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

/* Affiliate product styles */
.affiliate-product-single .affiliate-meta {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.affiliate-product-single .affiliate-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
}

.affiliate-product-single .affiliate-commission {
    background: #e8f5e8;
    color: #c034cb;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.affiliate-details ul {
    list-style: none;
    padding: 0;
}

.affiliate-details ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.affiliate-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.buy-now-btn, .join-affiliate-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.buy-now-btn {
    background: #e74c3c;
    color: white;
}

.join-affiliate-btn {
    background: #9b59b6;
    color: white;
}

/* Featured section styles */
.featured-section {
    margin: 40px 0;
}

.featured-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Pagination styles */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination ul {
    display: inline-block;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
    margin: 0 5px;
}

.pagination a, .pagination span {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #f1f1f1;
}

.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Dashboard styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #666;
}

.stat-card .stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
    margin: 0;
}

/* Form styles */
.ad-form .form-group {
    margin-bottom: 20px;
}

.ad-form .form-input,
.ad-form .form-textarea {
    width: 100%;
    max-width: 500px;
}

/* Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ad-meta,
    .coupon-meta,
    .affiliate-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .ad-actions,
    .coupon-actions,
    .affiliate-actions {
        flex-direction: column;
    }
    
    .save-ad-btn,
    .contact-seller-btn,
    .apply-coupon-btn,
    .buy-now-btn,
    .join-affiliate-btn {
        width: 100%;
    }
}