/* OpenCitations Download Page Styles */

/* General page styles */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Cards styling */
.card {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Download card styles for desktop */
.download-card {
    background: white;
    border: none;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.download-card .card-footer {
    background: white;
    border-top: none;
}

/* Styled buttons for download cards */
.download-card .btn-primary {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #28a745 !important; /* Verde chiaro */
    border-color: #28a745 !important;
    color: white;
}

.download-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #218838 !important; /* Verde più scuro all'hover */
    border-color: #1e7e34 !important;
}

/* Statistics card styling */
.card.bg-light {
    background-color: #f8f9fa !important;
    border: none;
}

/* Table styling */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: var(--oc-purple);
    color: white;
    font-weight: 600;
}

/* Download buttons in tables */
.btn-outline-primary {
    border-color: var(--oc-purple);
    color: var(--oc-purple);
}

.btn-outline-primary:hover {
    background-color: var(--oc-purple);
    color: white;
}

/* Accordion styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(153, 49, 252, 0.05);
    color: var(--oc-purple);
}

.accordion-button:focus {
    border-color: rgba(153, 49, 252, 0.2);
    box-shadow: 0 0 0 0.25rem rgba(153, 49, 252, 0.1);
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* Card styles for mobile */
    .download-card {
        background: rgba(153, 49, 252, 0.1) !important;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(153, 49, 252, 0.2) !important;
    }
    
    .download-card.index-card {
        background: rgba(45, 34, 222, 0.1) !important;
        border: 1px solid rgba(45, 34, 222, 0.2) !important;
    }
    
    .download-card .card-body {
        padding: 1.5rem !important;
    }
    
    .download-card .card-footer {
        background: rgba(153, 49, 252, 0.05) !important;
        border-top: 1px solid rgba(153, 49, 252, 0.1) !important;
    }
    
    .download-card.index-card .card-footer {
        background: rgba(45, 34, 222, 0.05) !important;
        border-top: 1px solid rgba(45, 34, 222, 0.1) !important;
    }
    
    /* Improved table responsiveness */
    .table-responsive {
        margin-bottom: 1.5rem;
    }
    
    /* Better touch targets for mobile */
    .btn {
        padding: 0.5rem 1rem;
    }
}