/* Affiliate Products Styles */

/* Single Product Box */
.afp-single-box {
    background: #fff;
    border: 2px solid #6366f1;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    max-width: 600px;
}

.afp-category {
    background: #6366f1;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 20px;
    text-align: center;
    margin: -30px -30px 25px -30px;
    border-radius: 6px 6px 0 0;
}

/* Header Color Variations */
.afp-header-indigo { background: #6366f1; color: #fff; }
.afp-header-blue { background: #3b82f6; color: #fff; }
.afp-header-purple { background: #a855f7; color: #fff; }
.afp-header-teal { background: #14b8a6; color: #fff; }
.afp-header-green { background: #22c55e; color: #fff; }
.afp-header-red { background: #ef4444; color: #fff; }
.afp-header-orange { background: #f97316; color: #fff; }
.afp-header-pink { background: #ec4899; color: #fff; }
.afp-header-gray { background: #6b7280; color: #fff; }

/* Border Colors */
.afp-color-indigo { border-color: #6366f1; }
.afp-color-blue { border-color: #3b82f6; }
.afp-color-purple { border-color: #a855f7; }
.afp-color-teal { border-color: #14b8a6; }
.afp-color-green { border-color: #22c55e; }
.afp-color-red { border-color: #ef4444; }
.afp-color-orange { border-color: #f97316; }
.afp-color-pink { border-color: #ec4899; }
.afp-color-gray { border-color: #6b7280; }

.afp-product-content {
    text-align: center;
}

.afp-product-image {
    margin: 0 auto 20px;
    max-width: 300px;
}

.afp-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.afp-product-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-decoration: underline;
}

.afp-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    color: #333;
}

/* Pros and Cons */
.afp-pros,
.afp-cons {
    text-align: left;
    margin: 20px 0;
}

.afp-pro-item,
.afp-con-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.afp-pro-item svg {
    color: #22c55e;
    flex-shrink: 0;
    margin-top: 3px;
}

.afp-con-item svg {
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Buttons */
.afp-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.afp-button {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.afp-button-yellow {
    background: #fef08a;
    color: #000;
}

.afp-button-yellow:hover {
    background: #fde047;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 240, 138, 0.5);
}

.afp-button-orange {
    background: #fdba74;
    color: #000;
}

.afp-button-orange:hover {
    background: #fb923c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 186, 116, 0.5);
}

.afp-button-blue {
    background: #60a5fa;
    color: #fff;
}

.afp-button-blue:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.5);
}

.afp-button-green {
    background: #86efac;
    color: #000;
}

.afp-button-green:hover {
    background: #4ade80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 239, 172, 0.5);
}

/* Comparison Table */
.afp-comparison-table {
    margin: 40px 0;
}

.afp-comparison-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
}

.afp-comparison-grid {
    display: grid;
    gap: 20px;
    margin: 0 auto;
}

.afp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
}

.afp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
}

.afp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.afp-comparison-item {
    background: #fff;
    border: 2px solid #6366f1;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.afp-comparison-item .afp-category {
    margin: -30px -20px 20px -20px;
}

.afp-comparison-item .afp-product-image {
    margin: 0 auto 15px;
    max-width: 200px;
}

.afp-comparison-item .afp-product-title {
    font-size: 20px;
    margin: 0 0 15px 0;
}

.afp-comparison-item .afp-description {
    font-size: 14px;
    margin: 0 0 20px 0;
}

.afp-comparison-item .afp-pros,
.afp-comparison-item .afp-cons {
    font-size: 14px;
}

.afp-comparison-item .afp-buttons {
    margin-top: auto;
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .afp-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .afp-columns-2,
    .afp-columns-3,
    .afp-columns-4 {
        grid-template-columns: 1fr;
    }

    .afp-single-box {
        padding: 20px;
    }

    .afp-category {
        margin: -20px -20px 20px -20px;
        font-size: 16px;
        padding: 10px 15px;
    }

    .afp-product-title {
        font-size: 20px;
    }

    .afp-comparison-item {
        padding: 20px 15px;
    }

    .afp-comparison-item .afp-category {
        margin: -20px -15px 15px -15px;
    }
}

/* Print styles */
@media print {
    .afp-button {
        display: none;
    }
}

/* Table Comparison Styles */
.afp-table-wrapper {
    margin: 40px 0;
}

.afp-table-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
}

.afp-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.afp-comparison-table-style {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.afp-comparison-table-style thead {
    background: #6366f1;
    color: #fff;
}

.afp-comparison-table-style th {
    padding: 20px 15px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.afp-comparison-table-style th.afp-table-feature-col {
    background: #4f46e5;
    color: #fff;
    text-align: left;
    min-width: 150px;
}

.afp-table-thumb {
    display: block;
    max-width: 100px;
    height: auto;
    margin: 0 auto 10px;
    border-radius: 4px;
}

.afp-table-badge {
    display: inline-block;
    background: #fef08a;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.afp-comparison-table-style td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
}

.afp-comparison-table-style td.afp-table-feature-col {
    background: #f9fafb;
    text-align: left;
    font-weight: 600;
}

.afp-comparison-table-style tbody tr:nth-child(even) td:not(.afp-table-feature-col) {
    background: #f9fafb;
}

.afp-comparison-table-style tbody tr:hover td:not(.afp-table-feature-col) {
    background: #f0fdf4;
}

.afp-table-action-row td {
    background: #fff !important;
    padding: 20px 15px;
}

.afp-button-small {
    padding: 10px 20px;
    font-size: 14px;
    margin: 5px 0;
    display: inline-block;
    width: auto;
}

@media (max-width: 768px) {
    .afp-comparison-table-style {
        font-size: 14px;
    }

    .afp-comparison-table-style th,
    .afp-comparison-table-style td {
        padding: 10px 8px;
    }

    .afp-table-thumb {
        max-width: 60px;
    }

    .afp-button-small {
        font-size: 12px;
        padding: 8px 15px;
    }
}
