/* Search & Filter Styles */
.affcoups-search-filter {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.affcoups-search-filter .search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.affcoups-search-filter input[type="text"],
.affcoups-search-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.affcoups-search-filter input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.affcoups-search-filter select {
    min-width: 120px;
}

.affcoups-search-filter button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.affcoups-search-filter button:hover {
    background: #005a87;
}

/* Pagination Styles */
.affcoups-pagination {
    text-align: center;
    margin: 20px 0;
}

.affcoups-page-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.affcoups-page-btn:hover {
    background: #e1e1e1;
}

.affcoups-page-btn.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Click to Reveal Code Styles */
.affcoups-coupon-code {
    position: relative;
}

.affcoups-reveal-code {
    display: inline-block;
    padding: 8px 16px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.affcoups-reveal-code:hover {
    background: #e55a2b;
    color: white;
}

.code-revealed {
    display: none;
    padding: 8px 12px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.affcoups-copy-code {
    display: inline-block;
    padding: 4px 8px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
}

.affcoups-copy-code:hover {
    background: #218838;
}

.affcoups-copy-code.copied {
    background: #17a2b8;
}

/* Social Share Styles */
.affcoups-social-share {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.affcoups-social-share a {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    color: white;
    transition: opacity 0.3s;
}

.affcoups-social-share a:hover {
    opacity: 0.8;
    color: white;
}

.affcoups-share-facebook {
    background: #3b5998;
}

.affcoups-share-twitter {
    background: #1da1f2;
}

.affcoups-share-whatsapp {
    background: #25d366;
}

.affcoups-share-email {
    background: #666;
}

/* Statistics Display */
.affcoups-stats {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.affcoups-stats span {
    margin-right: 15px;
}

/* Loading Animation */
.affcoups-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.affcoups-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Template Styles */
.affcoups-banner {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.affcoups-banner .coupon-image {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
}

.affcoups-banner .coupon-content {
    flex: 1;
}

.affcoups-banner .coupon-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.affcoups-banner .coupon-discount {
    font-size: 24px;
    font-weight: bold;
    color: #ffeb3b;
}

.affcoups-widget-small {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    background: white;
}

.affcoups-widget-small .coupon-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.affcoups-widget-small .coupon-discount {
    color: #e74c3c;
    font-weight: bold;
}

/* Light and Dark Styles */
.affcoups-style-light {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.affcoups-style-light .coupon-title {
    color: #333;
}

.affcoups-style-light .coupon-description {
    color: #666;
}

.affcoups-style-dark {
    background: #2c3e50;
    border: 1px solid #34495e;
    color: white;
}

.affcoups-style-dark .coupon-title {
    color: #ecf0f1;
}

.affcoups-style-dark .coupon-description {
    color: #bdc3c7;
}

.affcoups-style-dark .affcoups-reveal-code {
    background: #e74c3c;
}

.affcoups-style-dark .affcoups-reveal-code:hover {
    background: #c0392b;
}

/* Hide Image Option */
.affcoups-hide-image .coupon-image,
.affcoups-hide-image .affcoups-coupon__header img {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .affcoups-search-filter .search-row {
        flex-direction: column;
    }
    
    .affcoups-search-filter input[type="text"],
    .affcoups-search-filter select {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .affcoups-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .affcoups-banner .coupon-image {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .affcoups-social-share a {
        display: block;
        margin: 5px 0;
    }
}