/* Psychic4cast Advisors - Card Grid Styles */

/* Heading */
.psy4cast-heading {
    text-align: center;
    color: #2d1b4e;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #8e44ad;
    display: inline-block;
    width: 100%;
}

/* Grid Layout */
.psy4cast-advisors-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}

.psy4cast-cols-1 { grid-template-columns: 1fr; }
.psy4cast-cols-2 { grid-template-columns: repeat(2, 1fr); }
.psy4cast-cols-3 { grid-template-columns: repeat(3, 1fr); }
.psy4cast-cols-4 { grid-template-columns: repeat(4, 1fr); }
.psy4cast-cols-5 { grid-template-columns: repeat(5, 1fr); }
.psy4cast-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Advisor Card */
.psy4cast-advisor-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(142, 68, 173, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.psy4cast-advisor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(142, 68, 173, 0.15);
}

/* Status Badge */
.psy4cast-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psy4cast-status-online {
    background: #d4edda;
    color: #155724;
}

.psy4cast-status-offline {
    background: #e2e3e5;
    color: #6c757d;
}

.psy4cast-status-busy {
    background: #f8d7da;
    color: #721c24;
}

/* Avatar */
.psy4cast-avatar-wrap {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

img.psy4cast-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    -webkit-border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 3px solid #8e44ad !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
}

.psy4cast-advisor-card:hover img.psy4cast-avatar {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05);
}

/* Name */
.psy4cast-advisor-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #2d1b4e;
}

.psy4cast-advisor-name a {
    color: #2d1b4e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.psy4cast-advisor-name a:hover {
    color: #8e44ad;
}

/* Categories */
.psy4cast-advisor-category {
    font-size: 12px;
    color: #8e44ad;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Subjects */
.psy4cast-advisor-subjects {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Phone Info */
.psy4cast-phone-info {
    font-size: 12px;
    color: #2d1b4e;
    margin-bottom: 10px;
    line-height: 1.6;
}

.psy4cast-phone-pin {
    font-size: 13px;
}

.psy4cast-phone-number a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 600;
}

.psy4cast-phone-number a:hover {
    text-decoration: underline;
}

/* Stats (reviews, sessions) */
.psy4cast-advisor-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.psy4cast-reviews {
    color: #f39c12;
    font-weight: 600;
}

.psy4cast-sessions {
    color: #888;
}

/* Description */
.psy4cast-advisor-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
    min-height: 40px;
}

/* Prices */
.psy4cast-prices {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px;
    background: #f8f0ff;
    border-radius: 10px;
}

.psy4cast-price-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 3px 0;
}

.psy4cast-price-label {
    font-weight: 600;
    color: #6c3483;
}

.psy4cast-price {
    color: #2d1b4e;
    font-weight: 700;
}

.psy4cast-price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.psy4cast-price-offer {
    color: #e74c3c;
    font-weight: 700;
}

/* Action Buttons */
.psy4cast-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.psy4cast-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    line-height: 1.4;
}

.psy4cast-btn-chat {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff !important;
}

.psy4cast-btn-chat:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.psy4cast-btn-call {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: #fff !important;
}

.psy4cast-btn-call:hover {
    background: linear-gradient(135deg, #2471a3, #2980b9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.psy4cast-btn-message {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #fff !important;
}

.psy4cast-btn-message:hover {
    background: linear-gradient(135deg, #7d3c98, #8e44ad);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.psy4cast-btn-profile {
    background: transparent;
    color: #6c3483 !important;
    border: 2px solid #6c3483;
}

.psy4cast-btn-profile:hover {
    background: #6c3483;
    color: #fff !important;
    text-decoration: none;
}

/* Categories List */
.psy4cast-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.psy4cast-category-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.psy4cast-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    color: #fff !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.psy4cast-cat-btn:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.psy4cast-cat-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.psy4cast-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.psy4cast-cat-name {
    font-weight: 600;
    color: #2d1b4e;
}

.psy4cast-cat-count {
    color: #888;
    font-size: 13px;
}

/* Notices */
.psy4cast-notice {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.psy4cast-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px 20px;
    color: #721c24;
}

.psy4cast-error a {
    color: #721c24;
    font-weight: 700;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .psy4cast-cols-5,
    .psy4cast-cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .psy4cast-cols-4,
    .psy4cast-cols-5,
    .psy4cast-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .psy4cast-cols-3,
    .psy4cast-cols-4,
    .psy4cast-cols-5,
    .psy4cast-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .psy4cast-advisor-card {
        padding: 18px 14px;
    }

    .psy4cast-avatar {
        width: 70px;
        height: 70px;
    }

    .psy4cast-heading {
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .psy4cast-cols-2,
    .psy4cast-cols-3,
    .psy4cast-cols-4,
    .psy4cast-cols-5,
    .psy4cast-cols-6 {
        grid-template-columns: 1fr;
    }

    .psy4cast-advisor-card {
        padding: 20px 16px;
    }

    .psy4cast-buttons {
        flex-direction: column;
    }
}
