/* Digital Tools Access Manager Styles */

.digital-tools-purchase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.digital-tools-purchase h3 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.digital-tools-purchase .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.digital-tools-purchase .tool-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.digital-tools-purchase .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.digital-tools-purchase .tool-image {
    height: 150px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.digital-tools-purchase .tool-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0 !important;
    border: none !important;
}

.digital-tools-purchase .tool-card-content {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.digital-tools-purchase h4 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    flex-grow: 1;
}

.digital-tools-purchase .price {
    font-size: 1.25rem;
    color: #343a40;
    margin-bottom: 20px;
}

.digital-tools-purchase .price ins {
    color: #dc3545;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 10px;
}

.digital-tools-purchase .price del {
    color: #6c757d;
    font-size: 1rem;
}

.digital-tools-purchase .purchase-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #007bff;
    color: #fff !important;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.digital-tools-purchase .purchase-btn:hover {
    background-color: #0056b3;
}

/* Badge Styles & Animations */
.badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #dc3545;
    color: white;
    padding: 5px 30px;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 1;
}

.tool-card[data-badge="Trending"] .badge {
    background-color: #ffc107;
    color: #212529;
    animation: pulse 2s infinite;
}

.tool-card[data-badge="Exclusive"] .badge {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    animation: shimmer 3s infinite;
}

.tool-card[data-badge="Limited Time"] .badge {
    background-color: #17a2b8;
    animation: flash 1.5s infinite;
}

@keyframes pulse {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.1); }
    100% { transform: rotate(45deg) scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* User Tools Access Styles */
.user-tools-access {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.user-tools-access h3 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.user-tools-access .tools-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.tool-access-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tool-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tool-access-card.expired {
    opacity: 0.8;
}

.tool-access-card .tool-image {
    height: 150px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-access-card .tool-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0 !important;
    border: none !important;
}

.tool-access-card .tool-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tool-access-card h4 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.tool-access-card .tool-meta {
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-access-card .expiry-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 5px;
}

.tool-access-card .expiry-info.lifetime {
    color: #28a745;
    font-weight: bold;
}

.tool-access-card .countdown {
    font-weight: bold;
    color: #007bff;
}

.tool-access-card.expired .countdown {
    color: #dc3545;
}

.tool-access-card .access-btn {
    display: block;
    background-color: #007bff;
    color: #fff !important;
    padding: 12px 15px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.tool-access-card .access-btn:hover {
    background-color: #0056b3;
}

.tool-access-card .access-btn.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Additional Features Styles */
.purchased-btn {
    background: #46b450 !important;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    cursor: default;
    width: 100%;
}

.dt-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 400px;
}

.dt-notification-success {
    background: #46b450;
}

.dt-notification-error {
    background: #dc3232;
}

.tool-countdown {
    margin-top: 10px;
    font-size: 14px;
}

.tool-countdown .time-remaining {
    color: #0073aa;
    font-weight: bold;
}

.tool-countdown .expired {
    color: #dc3232;
    font-weight: bold;
}

.tool-filters,
.tool-search {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.tool-filters label {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.tool-filters select,
.tool-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tool-search input {
    width: 100%;
    max-width: 400px;
}

.tool-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid #ddd;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-number.active {
    color: #46b450;
}

.stat-number.expired {
    color: #dc3232;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .digital-tools-purchase,
    .user-tools-access {
        padding: 15px;
    }
    
    .tool-access-card {
        padding: 15px;
    }
    
    .tool-stats {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .dt-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}