/* ruter-specific.css - Ruter-spesifikk styling */

/* Ruter-spesifikk gradient (oransje/rød for Ruter-farger) */
body {
    background: linear-gradient(135deg, #ec700c 0%, #d32f2f 25%, #b71c1c 75%, #880e4f 100%);
}

.calculator-card {
    border: 2px solid rgba(236, 112, 12, 0.3);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Location status styling */
.location-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Live indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 38, 38, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #dc2626;
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.live-text {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 1px;
}

.status-indicator {
    background: rgba(236, 112, 12, 0.1);
    border: 1px solid rgba(236, 112, 12, 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator.status-error {
    background: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.3);
}

.status-icon {
    font-size: 1.5em;
}

#statusText {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.location-btn {
    background: linear-gradient(135deg, #ec700c 0%, #d32f2f 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 112, 12, 0.4);
}

.location-btn:active {
    transform: translateY(0);
}

/* Departure board container with aspect ratio */
.departure-board {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100%;
    /* Using padding-bottom for aspect ratio - 56.25% = 16:9 ratio (like your screenshot) */
    padding-bottom: 56.25%;
    height: 0;
    transition: box-shadow 0.3s ease;
}

.departure-board:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.departure-board iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Remove all resize handle styles */
.resize-handle {
    display: none;
}

/* Transport types display */
.transport-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.transport-icon {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #ec700c;
    transition: all 0.3s ease;
}

.transport-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(236, 112, 12, 0.3);
    border-left-width: 6px;
}

/* Ruter-spesifikke resultat-bokser */
.results {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 5px solid #ec700c;
}

/* Ruter-spesifikke høydepunkter */
.calculate-btn {
    background: linear-gradient(135deg, #ec700c 0%, #d32f2f 100%);
}

.calculate-btn:hover {
    box-shadow: 0 15px 30px rgba(236, 112, 12, 0.4);
}

input[type="number"]:focus, select:focus {
    border-color: #ec700c;
    box-shadow: 0 0 0 3px rgba(236, 112, 12, 0.1);
}

.info-note {
    background: rgba(236, 112, 12, 0.1);
    border: 1px solid rgba(236, 112, 12, 0.2);
}

/* Transport-tema spesifikke tilpasninger */
h2 {
    color: #b71c1c;
}

.ruter-tip {
    background: rgba(236, 112, 12, 0.1);
    border: 1px solid rgba(236, 112, 12, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    color: #b71c1c;
}

/* Responsive design */
@media (max-width: 768px) {
    .location-info {
        flex-direction: column;
    }
    
    .status-indicator {
        width: 100%;
    }
    
    .location-btn {
        width: 100%;
    }
    
    .transport-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .live-indicator {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .transport-types {
        grid-template-columns: 1fr;
    }
}

/* Animation for status updates */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 112, 12, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(236, 112, 12, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 112, 12, 0);
    }
}

.pulse-orange {
    animation: pulse-orange 2s infinite;
}

/* Fullscreen mode styles */
body.fullscreen-mode {
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
}

body.fullscreen-mode .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.fullscreen-mode .calculator-card {
    border: none;
    border-radius: 0;
    padding: 15px;
    margin: 0;
    box-shadow: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    height: 100%;
}

body.fullscreen-mode h1,
body.fullscreen-mode h2,
body.fullscreen-mode .info-note,
body.fullscreen-mode .transport-types {
    display: none !important;
}

body.fullscreen-mode .location-info {
    margin-bottom: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
}

body.fullscreen-mode .departure-board {
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    height: auto !important;
    overflow: hidden;
}

body.fullscreen-mode .departure-board iframe {
    position: static;
    height: 100% !important;
    flex: 1;
}

body.fullscreen-mode .adsbygoogle,
body.fullscreen-mode #seo-article,
body.fullscreen-mode #about-section,
body.fullscreen-mode #privacy-policy {
    display: none !important;
    visibility: hidden !important;
}

.fullscreen-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.fullscreen-btn:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

body.fullscreen-mode .fullscreen-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

body.fullscreen-mode .fullscreen-btn:hover {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Loading state */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(236, 112, 12, 0.2);
    border-top-color: #ec700c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}