/* Prepare Page Specific Styles */

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out;
}

.emergency-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.emergency-icon {
    font-size: 24px;
    animation: pulse 1s infinite;
}

.emergency-details {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.emergency-details:hover {
    background: rgba(255,255,255,0.3);
}

/* Prepare Hero */
.prepare-hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prepare-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147,51,234,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.safety-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #9333ea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Quick Check Section */
.quick-check {
    padding: 40px 0;
    background: #f8f9fa;
}

.quick-check-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.quick-check-card h2 {
    margin-bottom: 15px;
    color: #302b63;
}

.quick-check-card p {
    margin-bottom: 25px;
    color: #666;
}

/* Content Grid */
.prepare-content {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.prepare-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prepare-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.prepare-card.large {
    grid-column: span 2;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-icon {
    font-size: 2rem;
}

.card-content {
    padding: 25px;
}

/* Safety Assessment */
.assessment-container {
    margin-top: 20px;
}

.assessment-question {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.assessment-question label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.assessment-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.assessment-option {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assessment-option:hover {
    border-color: #9333ea;
    background: #f3e8ff;
}

.assessment-option.selected {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
}

/* Calculator Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.calculator-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 500;
}

.calculator-form select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: border-color 0.3s ease;
}

.calculator-form select:focus {
    outline: none;
    border-color: #9333ea;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background: #f3e8ff;
    border-radius: 10px;
    border-left: 4px solid #9333ea;
}

/* Medical Checklist */
.medical-checklist {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.advice-box {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.advice-box.warning {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Equipment Checklist */
.equipment-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.equipment-section h4 {
    margin-bottom: 15px;
    color: #302b63;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.checklist input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checklist label {
    flex: 1;
}

.purchase-link {
    color: #9333ea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.purchase-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.download-btn {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #218838;
}

/* Conditions Monitor */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.condition-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.condition-item h4 {
    margin-bottom: 15px;
    color: #302b63;
}

.weather-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.weather-icon {
    font-size: 3rem;
}

.weather-info {
    text-align: left;
}

.temp {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #302b63;
}

.conditions {
    color: #666;
}

.forecast-mini {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

.emf-meter {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.emf-level {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    transition: width 0.5s ease;
}

.emf-reading {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #302b63;
    margin-bottom: 5px;
}

.emf-status {
    color: #666;
}

.solar-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.solar-icon {
    font-size: 3rem;
}

.solar-status {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.solar-detail {
    font-size: 0.9rem;
    color: #666;
}

.refresh-btn {
    background: transparent;
    border: 2px solid #9333ea;
    color: #9333ea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #9333ea;
    color: white;
}

/* Buddy System */
.buddy-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.find-buddy-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.find-buddy-btn:hover {
    transform: translateY(-2px);
}

.buddy-matches {
    margin-top: 20px;
}

.buddy-match {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.buddy-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.buddy-info {
    flex: 1;
}

.buddy-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.buddy-details {
    font-size: 0.9rem;
    color: #666;
}

.buddy-contact {
    background: #9333ea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.buddy-contact:hover {
    background: #7c3aed;
}

/* Integration Practices */
.practices-list {
    margin: 20px 0;
}

.practice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.practice-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.practice-icon {
    font-size: 2rem;
}

.practice-info {
    flex: 1;
}

.practice-info h5 {
    margin: 0 0 5px 0;
    color: #302b63;
}

.duration {
    font-size: 0.9rem;
    color: #666;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Transportation */
.transport-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.transport-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.transport-tab:hover {
    color: #9333ea;
}

.transport-tab.active {
    color: #9333ea;
    border-bottom-color: #9333ea;
}

.train-schedule {
    margin: 20px 0;
}

.train-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.train-time {
    display: flex;
    gap: 20px;
    align-items: center;
}

.departure {
    font-size: 1.2rem;
    font-weight: bold;
    color: #302b63;
}

.arrival {
    color: #666;
}

.train-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.train-line {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.train-status {
    font-weight: 500;
}

.train-status.on-time {
    color: #28a745;
}

.train-status.delayed {
    color: #dc3545;
}

.map-container {
    height: 300px;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Emergency Protocols */
.emergency-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.emergency-contact {
    text-align: center;
    padding: 20px;
    background: #fee;
    border-radius: 10px;
    border: 2px solid #fcc;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.contact-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-number:hover {
    color: #c82333;
}

.protocol-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.safety-tips {
    margin-top: 30px;
    padding: 20px;
    background: #e7f3ff;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.safety-tips h5 {
    margin-bottom: 10px;
    color: #1976d2;
}

.safety-tips ul {
    margin: 0;
    padding-left: 20px;
}

.safety-tips li {
    margin-bottom: 8px;
    color: #555;
}

/* Support Widget */
.support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.support-toggle {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.support-toggle:hover {
    transform: scale(1.05);
}

.support-icon {
    font-size: 1.5rem;
}

.support-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
}

.chat-status {
    font-size: 0.9rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    margin-bottom: 15px;
}

.chat-message.support {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    border-bottom-left-radius: 0;
}

.chat-message.user {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 10px;
    border-bottom-right-radius: 0;
    margin-left: 50px;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    outline: none;
}

.chat-input button {
    background: #9333ea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: #7c3aed;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.emergency-modal {
    max-width: 800px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.emergency-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.emergency-card h3 {
    margin-bottom: 15px;
    color: #302b63;
}

.emergency-number {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #dc3545;
    text-decoration: none;
    margin: 10px 0;
}

.emergency-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0;
}

.emergency-card button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.emergency-card button:hover {
    background: #0056b3;
}

.close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #5a6268;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #9333ea;
    color: #9333ea;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.secondary-btn:hover {
    background: #9333ea;
    color: white;
}

.cta-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .safety-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .prepare-card.large {
        grid-column: span 1;
    }
    
    .equipment-categories {
        grid-template-columns: 1fr;
    }
    
    .emergency-numbers {
        grid-template-columns: 1fr;
    }
    
    .protocol-actions {
        flex-direction: column;
    }
    
    .support-chat {
        width: 300px;
    }
    
    .transport-options {
        overflow-x: auto;
    }
}