/* Index Page Specific Styles */

/* Index page specific container */
.index-page .container {
    max-width: none;
    width: 100%;
    margin: 0;
}

.index-page .content {
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* No Map Message Section */
.no-map-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.no-map-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.no-map-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

.no-map-message h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
    font-weight: 300;
    position: relative;
}

.no-map-message h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.no-map-message p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #6c757d;
}

/* Features List */
.features-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.features-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.features-list h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.features-list h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 12px 0;
    color: #555;
    position: relative;
    padding-left: 35px;
    font-size: 1rem;
    line-height: 1.5;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:hover {
    color: #2c3e50;
    padding-left: 40px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    margin: 0 -10px;
    padding-left: 50px;
}

.features-list li:before {
    content: "✅";
    position: absolute;
    left: 0;
    color: #28a745;
    font-size: 1.2em;
    top: 10px;
    transition: all 0.2s ease;
}

.features-list li:hover:before {
    transform: scale(1.2);
    color: #20c997;
}

/* Enhanced Create Map Button */
.create-map-btn {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.create-map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #5a67d8 0%, #6b46c1 100%);
}

.create-map-btn:active {
    transform: translateY(-1px);
}

.create-map-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.create-map-btn:hover::before {
    left: 100%;
}

/* Security Error Banner */
.security-error-banner {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
    overflow: hidden;
    animation: slideInDown 0.5s ease-out;
}

.security-error-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    position: relative;
}

.security-error-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.security-error-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.4;
}

.security-error-dismiss {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.security-error-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

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

/* Display Only Map Section */
.display-only-map {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 40px;
}

.display-only-map .map-header {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.display-only-map .map-header h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.display-only-map .map-header p {
    color: #6c757d;
    font-size: 1.1em;
    line-height: 1.6;
}

.display-only-map .map-section {
    padding: 30px;
}

.display-only-map .legend {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: calc(100% - 60px);
    box-sizing: border-box;
}

.display-only-map .legend h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.display-only-map .legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.display-only-map .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.display-only-map .legend-icon {
    font-size: 1.2em;
}

/* Display-only zone overrides */
.zone.display-only {
    cursor: default !important;
    pointer-events: none;
}

.zone.display-only:hover {
    transform: none !important;
    box-shadow: none !important;
}

.zone.display-only .zone-level::before {
    display: none !important;
}

/* Display-only map grid */
#display-only-map-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 0;
    margin: 0 auto;
    position: relative;
    width: fit-content;
}

/* Responsive Design */
@media (max-width: 768px) {
    .security-error-banner {
        margin: 15px;
        border-radius: 8px;
    }
    
    .security-error-content {
        padding: 15px;
        gap: 10px;
    }
    
    .security-error-text {
        font-size: 1em;
    }
    
    .security-error-dismiss {
        width: 28px;
        height: 28px;
        font-size: 1.3em;
    }
    .no-map-message {
        padding: 40px 20px;
    }
    
    .no-map-message h2 {
        font-size: 2.2em;
    }
    
    .features-list {
        padding: 20px;
        margin: 0 auto 20px;
    }
    
    .display-only-map .map-header {
        padding: 20px;
    }
    
    .display-only-map .map-header h2 {
        font-size: 1.5em;
    }
    
    .display-only-map .map-section {
        padding: 20px;
    }
    
    .display-only-map .legend {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 480px) {
    .security-error-banner {
        margin: 10px;
        border-radius: 6px;
    }
    
    .security-error-content {
        padding: 12px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }
    
    .security-error-text {
        font-size: 0.9em;
    }
    
    .security-error-dismiss {
        width: 26px;
        height: 26px;
        font-size: 1.2em;
        align-self: flex-end;
        margin-top: -10px;
    }
    .no-map-message {
        padding: 30px 15px;
    }
    
    .no-map-message h2 {
        font-size: 1.8em;
    }
    
    .no-map-message p {
        font-size: 0.95rem;
    }
    
    .features-list {
        padding: 15px;
        margin: 0 auto 15px;
    }
    
    .features-list h3 {
        font-size: 1.1em;
    }
    
    .features-list li {
        padding: 8px 0;
        font-size: 0.85rem;
        padding-left: 25px;
    }
    
    .create-map-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .display-only-map .map-header {
        padding: 15px;
    }
    
    .display-only-map .map-section {
        padding: 15px;
    }
    
    .display-only-map .legend {
        margin: 15px;
        width: calc(100% - 30px);
        padding: 20px;
    }
}
