/**
 * Annual Reports Frontend Styles
 * Version: 1.0.0
 */

/* Reports Grid */
.ar-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.ar-reports-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.ar-reports-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Report Item */
.ar-report-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ar-report-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ar-report-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Report Image */
.ar-report-image {
    position: relative;
    background: #f5f5f5;
    text-align: center;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-report-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ar-report-image a:hover img {
    transform: scale(1.05);
}

/* Report Content */
.ar-report-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ar-report-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
    color: #333;
}

.ar-report-year {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.ar-year-label {
    font-weight: bold;
}

.ar-year-value {
    color: #0073aa;
    font-weight: bold;
}

.ar-report-description {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    flex-grow: 1;
}

/* Download Button */
.ar-report-download {
    margin-top: 15px;
}

.ar-download-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #00a77e;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.ar-download-button:hover {
    background: #008c69;
    color: white !important;
}

.ar-download-button .dashicons {
    margin-right: 8px;
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

/* Fallback if dashicons don't load - use CSS icon */
.ar-download-button .dashicons:before {
    content: "\f497"; /* Dashicons media-document icon code */
    font-family: dashicons;
}

/* Alternative PDF icon using CSS if needed */
.ar-pdf-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0id2hpdGUiPjxwYXRoIGQ9Ik0xNCAxSDZjLTEuMSAwLTIgLjktMiAydjE4YzAgMS4xLjkgMiAyIDJoMTJjMS4xIDAgMi0uOSAyLTJWN2wtNi02em0tMSAxMGgtMnYxaDJ2MWgtM3YtNGgzdjF6bS0yLTNoMXYxaC0xdjJoLTF2LTJIOXYtMWgxVjloMXYxem0yIDVoLTN2NGgzdi0xaC0ydi0xaDJ2LTJ6bTAtN1Y0bDUgNWgtNXoiLz48L3N2Zz4=');
    background-size: contain;
    background-repeat: no-repeat;
}

.ar-file-size {
    margin-left: 5px;
    font-weight: normal;
    opacity: 0.9;
    font-size: 12px;
}

/* No PDF Message */
.ar-report-no-pdf {
    margin-top: 15px;
}

.ar-no-pdf-message {
    display: inline-block;
    padding: 8px 15px;
    background: #f0f0f0;
    color: #666;
    border-radius: 5px;
    font-size: 13px;
    font-style: italic;
}

/* No Reports Message */
.ar-no-reports {
    padding: 40px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 30px 0;
}

.ar-no-reports p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ar-reports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .ar-reports-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ar-reports-grid,
    .ar-reports-grid[data-columns="2"],
    .ar-reports-grid[data-columns="3"],
    .ar-reports-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ar-report-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ar-reports-grid,
    .ar-reports-grid[data-columns="2"],
    .ar-reports-grid[data-columns="3"],
    .ar-reports-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .ar-report-image {
        min-height: 150px;
    }
}