/**
 * Profile Card - PREMIUM EDITION V5.0.14
 * 
 * Optimierte Profil-Cards für 3/4/5 Spalten:
 * - Buttons immer auf gleicher Höhe
 * - Profilname max. 2 Zeilen
 * - Premium-Look mit perfekten Proportionen
 * - WEIßE SCHRIFT für perfekte Lesbarkeit
 * 
 * @package DATAsoft_Escort_Core
 * @version 5.0.14
 */

/* Profile Card - Flexbox Layout */
.ds-profile-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-profile-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4), 0 0 0 2px var(--color-primary);
}

/* Card Image */
.ds-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.ds-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ds-profile-card:hover .ds-card-image img {
    transform: scale(1.05);
}

/* Card Content - Flex Grow */
.ds-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--spacing-md);
}

/* Card Title - MAX 2 ZEILEN - WEIß & FETT & TEXT-SHADOW */
.ds-card-title {
    font-size: var(--text-lg);
    font-weight: 900 !important; /* EXTRA FETT */
    margin-bottom: var(--spacing-sm);
    color: #ffffff !important; /* REIN WEIß */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6); /* Starker Schatten für Lesbarkeit */
    letter-spacing: 0.3px;
    
    /* 2-Zeilen-Limit */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: calc(1.4em * 2); /* Immer 2 Zeilen Platz reservieren */
}

/* Card Meta - HELLGRAU MIT SCHATTEN */
.ds-card-meta {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.95) !important; /* HELLER für gute Lesbarkeit */
    margin-bottom: var(--spacing-md);
    flex: 1; /* Nimmt verfügbaren Platz */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.ds-card-meta span {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Card Footer - IMMER AM ENDE */
.ds-card-footer {
    margin-top: auto; /* Pushed to bottom */
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Button - Immer gleiche Position */
.ds-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ds-card-btn:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
    color: #fff;
}

/* ===== GRID COLUMNS - KORREKTE ZUORDNUNG ===== */

/* 3 Spalten */
.ds-grid-container[data-cols="3"] {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* 4 Spalten */
.ds-grid-container[data-cols="4"] {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* 5 Spalten */
.ds-grid-container[data-cols="5"] {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* ===== RESPONSIVE ANPASSUNGEN ===== */

@media (max-width: 1680px) {
    .ds-grid-container[data-cols="5"] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1440px) {
    .ds-grid-container[data-cols="4"],
    .ds-grid-container[data-cols="5"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .ds-grid-container[data-cols="3"],
    .ds-grid-container[data-cols="4"],
    .ds-grid-container[data-cols="5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .ds-grid-container[data-cols="3"],
    .ds-grid-container[data-cols="4"],
    .ds-grid-container[data-cols="5"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== SCHRIFTGRÖSSEN ANPASSUNG ===== */

/* 5 Spalten - Kleinere Schrift */
.ds-grid-container[data-cols="5"] .ds-card-title {
    font-size: var(--text-base);
}

.ds-grid-container[data-cols="5"] .ds-card-meta {
    font-size: var(--text-xs);
}

.ds-grid-container[data-cols="5"] .ds-card-btn {
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
}

/* ===== BADGES & LABELS ===== */

.ds-card-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 0.375rem 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-md);
    z-index: 2;
}

.ds-card-badge.premium {
    background: var(--gradient-primary);
}

.ds-card-badge.verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ds-card-badge.online {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}
