/* Puppy Affiliate Monetizer Styles */

/* Monetization Blocks */
.pam-monetization-blocks-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 40px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    clear: both;
}

@media (min-width: 768px) {
    .pam-monetization-blocks-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .pam-monetization-blocks-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Force full width in all content areas */
.entry-content .pam-monetization-blocks-container,
.post-content .pam-monetization-blocks-container,
.content .pam-monetization-blocks-container,
article .pam-monetization-blocks-container,
.single-post .pam-monetization-blocks-container,
.post .pam-monetization-blocks-container,
main .pam-monetization-blocks-container,
#content .pam-monetization-blocks-container,
.site-main .pam-monetization-blocks-container,
.content-area .pam-monetization-blocks-container,
.entry .pam-monetization-blocks-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Ensure blocks are not constrained by parent width */
.pam-monetization-blocks-container * {
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .pam-monetization-blocks-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pam-monetization-block {
        padding: 20px;
    }
    
    .pam-affiliate-link {
        width: 100%;
        display: block;
        text-align: center;
        min-width: auto;
    }
    
    .pam-monetization-header h3 {
        font-size: 20px;
    }
    
    .pam-monetization-content {
        font-size: 15px;
    }
}

.pam-monetization-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pam-monetization-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pam-monetization-block.pam-slot-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pam-monetization-block.pam-slot-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.pam-monetization-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
}

@media (max-width: 1200px) {
    .pam-monetization-header h3 {
        font-size: 22px;
    }
}

.pam-monetization-content {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.pam-monetization-content p {
    margin: 0 0 15px 0;
    color: #fff;
    word-wrap: break-word;
}

@media (max-width: 1200px) {
    .pam-monetization-content {
        font-size: 15px;
    }
}

.pam-monetization-header h3 {
    color: #fff;
}

.pam-cta-button {
    margin-top: 20px;
    text-align: center;
}

.pam-cta-button a {
    display: inline-block;
}

.pam-affiliate-link {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    width: auto;
    min-width: 180px;
    box-sizing: border-box;
    white-space: nowrap;
}

.pam-affiliate-link,
.pam-affiliate-link:link,
.pam-affiliate-link:visited,
.pam-affiliate-link:active {
    color: #667eea;
    background: #ffffff;
}

@media (max-width: 1200px) {
    .pam-affiliate-link {
        font-size: 15px;
        padding: 12px 20px;
        min-width: 160px;
    }
}

.pam-affiliate-link,
.pam-affiliate-link:link,
.pam-affiliate-link:visited,
.pam-affiliate-link:active {
    color: #667eea !important;
    background: #ffffff !important;
}

.pam-affiliate-link:hover {
    background: #f8f9fa !important;
    color: #667eea !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pam-affiliate-link:visited {
    color: #667eea !important;
}

/* Ensure button text is visible in all slots */
.pam-slot-1 .pam-affiliate-link {
    color: #667eea !important;
}

.pam-slot-2 .pam-affiliate-link {
    color: #f5576c !important;
}

.pam-slot-3 .pam-affiliate-link {
    color: #4facfe !important;
}

/* Sticky Banner */
.pam-sticky-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.pam-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.pam-banner-text {
    font-size: 16px;
    font-weight: 500;
}

.pam-banner-button {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pam-banner-button:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.pam-banner-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.pam-banner-close:hover {
    opacity: 0.7;
}

/* Modal */
.pam-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pam-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pam-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pam-modal-close:hover {
    color: #333;
}

.pam-modal-content h2 {
    margin-top: 0;
    color: #333;
}

.pam-modal-content p {
    color: #666;
    line-height: 1.6;
}

#pam-email-form {
    margin-top: 20px;
}

#pam-email-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#pam-email-input:focus {
    outline: none;
    border-color: #667eea;
}

.pam-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pam-submit-button:hover {
    transform: scale(1.02);
}

.pam-privacy-note {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: center;
}

/* Responsive */

@media (max-width: 768px) {
    .pam-banner-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .pam-banner-text {
        text-align: center;
        font-size: 14px;
    }
    
    .pam-monetization-blocks-container {
        grid-template-columns: 1fr;
    }
    
    .pam-modal-content {
        padding: 30px 20px;
    }
    
    .pam-monetization-block {
        padding: 20px;
    }
    
    .pam-affiliate-link {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .pam-monetization-header h3 {
        font-size: 18px;
    }
    
    .pam-monetization-content {
        font-size: 14px;
    }
}

/* Hide banner when closed */
.pam-sticky-banner.pam-hidden {
    display: none;
}

/* Success message */
.pam-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Advertising Styles */
.pam-ad-container {
    margin: 20px 0;
    text-align: center;
    clear: both;
}

.pam-ad-container.pam-ad-header {
    margin: 10px 0 20px 0;
    padding: 10px 0;
}

.pam-ad-container.pam-ad-footer {
    margin: 20px 0 10px 0;
    padding: 10px 0;
}

.pam-ad-container.pam-ad-content {
    margin: 30px auto;
    max-width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.pam-ad-container.pam-ad-widget {
    margin: 15px 0;
}

/* Sticky Ad */
.pam-ad-sticky {
    position: fixed;
    bottom: 100px;
    z-index: 9998;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.pam-ad-sticky-left {
    left: 20px;
}

.pam-ad-sticky-right {
    right: 20px;
}

.pam-ad-sticky-content {
    text-align: center;
}

.pam-ad-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.pam-ad-close:hover {
    background: #666;
}

.pam-ad-sticky.pam-hidden {
    display: none;
}

/* Responsive Ad Styles */
@media (max-width: 768px) {
    .pam-ad-sticky {
        max-width: 250px;
        bottom: 80px;
    }
    
    .pam-ad-sticky-left {
        left: 10px;
    }
    
    .pam-ad-sticky-right {
        right: 10px;
    }
    
    .pam-ad-container.pam-ad-content {
        margin: 20px 0;
        padding: 10px;
    }
}

/* Hide sticky ad on very small screens */
@media (max-width: 480px) {
    .pam-ad-sticky {
        display: none;
    }
}

/* Digital Products Styles */
.pam-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pam-product-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pam-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pam-product-header h3 {
    color: #667eea;
    margin: 0 0 5px 0;
    font-size: 24px;
}

.pam-product-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.pam-product-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.pam-product-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pam-product-features li {
    padding: 8px 0;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.pam-product-features li:last-child {
    border-bottom: none;
}

.pam-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pam-product-price {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
}

.pam-product-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pam-product-button:hover {
    transform: scale(1.05);
}

/* Donation Button Styles */
.pam-donation-button-container {
    text-align: center;
    margin: 30px 0;
}

.pam-donation-button {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.pam-donation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.pam-donation-large .pam-donation-button {
    padding: 20px 40px;
    font-size: 18px;
}

.pam-donation-small .pam-donation-button {
    padding: 10px 20px;
    font-size: 14px;
}

/* Floating Donation Button */
.pam-donation-floating {
    position: fixed;
    z-index: 9997;
    bottom: 20px;
}

.pam-donation-bottom-right {
    right: 20px;
}

.pam-donation-bottom-left {
    left: 20px;
}

.pam-donation-floating-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    transition: transform 0.3s ease;
}

.pam-donation-floating-button:hover {
    transform: scale(1.05);
}

.pam-donation-icon {
    font-size: 24px;
}

.pam-donation-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .pam-donation-text {
        display: none;
    }
    
    .pam-donation-floating-button {
        padding: 15px;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
    }
}

/* Mini Course Styles */
.pam-course-enrollment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pam-course-header {
    text-align: center;
    margin-bottom: 30px;
}

.pam-course-header h2 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 32px;
}

.pam-course-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

.pam-course-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.pam-course-modules h3,
.pam-course-benefits h3 {
    color: #fff;
    margin-bottom: 15px;
}

.pam-course-features {
    list-style: none;
    padding: 0;
}

.pam-course-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pam-course-benefits ul {
    list-style: none;
    padding: 0;
}

.pam-course-benefits li {
    padding: 8px 0;
}

.pam-course-cta {
    text-align: center;
    margin-top: 30px;
}

.pam-course-price {
    margin-bottom: 20px;
}

.pam-price-label {
    font-size: 16px;
    opacity: 0.9;
    display: block;
    margin-bottom: 5px;
}

.pam-price-amount {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.pam-course-button {
    background: #fff;
    color: #667eea;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.pam-course-button:hover {
    transform: scale(1.05);
}

.pam-course-guarantee {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .pam-course-content {
        grid-template-columns: 1fr;
    }
    
    .pam-course-enrollment {
        padding: 30px 20px;
    }
}

