/* ============================================
   INTERACTIVE CARDS - NEW DESIGN
   Hover tooltip + Click to expand
============================================ */

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Card - Default State (Collapsed) */
.button-card-new {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.button-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    border-color: #3b82f6;
}

/* Tooltip on Hover */
.button-card-new::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.button-card-new::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.button-card-new:hover::before,
.button-card-new:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Card Icon */
.card-icon-new {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.button-card-new:hover .card-icon-new {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.card-icon-new i {
    font-size: 2rem;
    color: white;
}

/* Card Title */
.card-title-new {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Expanded Content (Hidden by default) */
.card-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-top: 0;
}

.button-card-new.expanded .card-expanded {
    max-height: 300px;
    opacity: 1;
    margin-top: 20px;
}

/* Card Description */
.card-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

/* Button in Card */
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-card:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-card:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-card:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Secure Button (Red) */
.btn-secure {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-secure:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Disabled Card State */
.button-card-new.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-card-new.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.button-card-new.disabled .card-icon-new {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

/* Secured Card State */
.button-card-new.secured .card-icon-new {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Expanded State - Change Border */
.button-card-new.expanded {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

/* Active/Click Animation */
.button-card-new:active {
    transform: scale(0.98);
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 1024px) {
    .button-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-icon-new {
        width: 60px;
        height: 60px;
    }

    .card-icon-new i {
        font-size: 1.6rem;
    }

    .card-title-new {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .button-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .button-card-new {
        padding: 20px;
    }

    .card-icon-new {
        width: 55px;
        height: 55px;
    }

    .card-icon-new i {
        font-size: 1.4rem;
    }

    .card-title-new {
        font-size: 0.95rem;
    }

    /* Hide tooltip on mobile */
    .button-card-new::before,
    .button-card-new::after {
        display: none;
    }
}