﻿.ad-actions-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -90%);
    z-index: 10;
    display: grid;                           /* 2x2 grid */
    grid-template-columns: repeat(2, 60px);  /* exactly 2 columns, 60px each */
    grid-auto-rows: 60px;                    /* each row 60px */
    column-gap: 14px;                         /* horizontal gap */
    row-gap: 12px;                            /* vertical gap (same as column) */
    justify-content: center;                 /* center whole grid */
    align-content: center;
    background-color: transparent;
}

/* Make overlay icon buttons smaller and keep them uniform */
.ad-actions-overlay .btn {
    padding: 4px 6px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 8px;
}

.ad-actions-overlay .btn i {
    font-size: 0.9rem;
    display: block;
}

.ad-actions-overlay .btn span,
.ad-actions-overlay .btn .btn-text {
    font-size: 0.7rem;
}

/* Common button styles */
.edit-btn, .stats-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Edit button specific - Purple gradient */
.edit-btn {
    border-color: #667eea;
    color: #667eea;
}

    .edit-btn:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: scale(1.05);
    }

/* Stats button specific - Cyan purple blend */
.stats-btn {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

    .stats-btn:hover {
        background: linear-gradient(135deg, #8b5cf6 0%, #667eea 100%);
        color: white;
        transform: scale(1.05);
    }

.delete-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.05);
}

.btn-warning:hover {
    background-color: #ffca2c !important;
    border-color: #ffc720;
}

/* Mobile: Additional profile-specific adjustments */
@media (max-width: 767.98px) {
    /* Ensure profile page cards have proper spacing for action buttons */
    .ad-card-wrapper .ad-card {
        display: flex;
        flex-direction: column;
    }
    
    .ad-card-wrapper .ad-content {
        flex-grow: 1;
    }
    
    /* Adjust footer spacing when action buttons are present */
    .ad-card-wrapper .ad-footer {
        margin-bottom: 0;
    }
}

/* Very small screens - profile specific */
@media (max-width: 359.98px) {
    .ad-actions-overlay .btn i {
        font-size: 0.8rem;
    }
}

/* Profile header mobile adjustments */
@media (max-width: 767.98px) {
    .card-body .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
    
    .card-body .d-flex.align-items-center > div:first-child {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    .card-body .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Profile Page - Nav Tabs Purple Theme Override */
#profileTabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

#profileTabs .nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

#profileTabs .nav-link.active {
    color: #667eea !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-bottom: 3px solid #667eea !important;
    font-weight: 600;
}

#profileTabs .nav-link.active i {
    color: #667eea !important;
}

#profileTabs .nav-link i {
    transition: color 0.3s ease;
}

#profileTabs .nav-link:hover i {
    color: #667eea;
}

/* Profile cards subtle purple tint */
.container .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(102, 126, 234, 0.01) 100%);
}
