/* Virtual Martyrs Report Styles */

.virtual-martyrs-section {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

/* Full width map container styles are now in the main .virtual-martyrs-section rule above */



.virtual-martyrs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-image: url('../images/visuals/2.png');
    background-size: 40px 40px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.04;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.section-header h1 {
    color: white;
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: #2F2D69;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(47, 45, 105, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section-header h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/visuals/3.png');
    background-size: 45px 45px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.section-header p {
    color: #666;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Map Controls */
.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 1;
}

.map-controls .btn {
    margin-left: 0.5rem;
}

.map-legend {
    display: flex;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.62rem;
    font-weight: 500;
}

.flower-legend {
    margin-left: 0.5rem;
    font-size: 0.82rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Map Instructions */
.map-instructions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    background: linear-gradient(135deg, #1AAB9E 0%, #2F2D69 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.instruction-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.instruction-content i {
    font-size: 0.82rem;
}

.instruction-content span {
    flex: 1;
    font-weight: 600;
}


.virtual-martyrs-map {
    height: 500px;
    width: 100% !important;
    background: #f8f9fa;
    min-width: 100%;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

/* Statistics */
.martyrs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: linear-gradient(135deg, #1AAB9E 0%, #2F2D69 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/visuals/4.png');
    background-size: 30px 30px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 171, 158, 0.3);
}

.stat-number {
    display: block;
    font-size: 1.7rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.68rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1AAB9E 0%, #2F2D69 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/visuals/3.png');
    background-size: 30px 30px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.modal-header h2 {
    position: relative;
    z-index: 1;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.02rem;
    position: relative;
    z-index: 1;
}

.close {
    color: white;
    font-size: 1.36rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.68rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1AAB9E;
    box-shadow: 0 0 0 3px rgba(26, 171, 158, 0.1);
}

.location-input {
    display: flex;
    gap: 0.5rem;
}

.location-input input {
    flex: 1;
}

.help-text {
    color: #6c757d;
    font-size: 0.59rem;
    margin-top: 0.25rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.selected-martyr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 171, 158, 0.1);
    border: 2px solid #1AAB9E;
    border-radius: 8px;
    color: #2F2D69;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Martyr Popup */
.martyr-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-header {
    background: linear-gradient(135deg, #1AAB9E 0%, #2F2D69 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/visuals/4.png');
    background-size: 25px 25px;
    background-repeat: repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.popup-header h3 {
    margin: 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.popup-close {
    color: white;
    font-size: 1.02rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

.popup-close:hover {
    opacity: 0.7;
}

.popup-body {
    padding: 1.5rem;
}

.martyr-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
    margin-left: 1rem;
}

.detail-item span {
    color: #6c757d;
    flex: 1;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Custom Flower Marker */
.flower-marker-icon {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flower-icon {
    font-size: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: flowerPulse 2s ease-in-out infinite;
}

@keyframes flowerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1AAB9E 0%, #2F2D69 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(26, 171, 158, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 171, 158, 0.4);
    background: linear-gradient(135deg, #159a8a 0%, #1e1b5c 100%);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1AAB9E;
    border: 2px solid #1AAB9E;
}

.btn-outline:hover {
    background: #1AAB9E;
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.59rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Ensure map takes full width on all screen sizes */
@media (min-width: 1200px) {
    .virtual-martyrs-map {
        width: 100vw;
        max-width: 100vw;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .virtual-martyrs-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .map-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .map-controls .btn {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .virtual-martyrs-section {
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
        border-radius: 0;
    }
    
    .virtual-martyrs-map {
        margin: 0;
        border-radius: 0;
    }
    
    .virtual-martyrs-map {
        height: 400px;
        width: 100% !important;
    }
    
    .martyrs-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .popup-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .section-header h1 {
        font-size: 1.36rem;
    }
    
    .virtual-martyrs-map {
        height: 400px;
    }
    
    .stat-number {
        font-size: 1.36rem;
    }
}
