/* orb.css - Cosmic HF Answer Orb Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated starfield background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.container {
    position: relative;
    z-index: 10;
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 4s ease infinite;
    margin-bottom: 10px;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    color: #cccccc;
    font-size: 14px;
}

.space-weather {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
}

.space-weather h3 {
    color: #4ecdc4;
    margin-bottom: 10px;
    font-size: 16px;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    font-size: 12px;
}

.weather-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* New 5x3 table layout */
.weather-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}

.weather-row {
    display: flex;
    gap: 2px;
}

.weather-cell {
    flex: 1;
    /* padding: 8px; */
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* min-height: 45px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.weather-empty {
    background: transparent !important;
    border: none !important;
}

.weather-label {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.weather-value {
    color: #000000 !important;
    font-weight: bold;
    font-size: 18px;
    /* -webkit-text-stroke: 1px #ffffff; */
    text-stroke: 1px #ffffff;
    /* text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8); */
}

/* Clickable cell styles */

.weather-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weather-clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.weather-clickable:hover::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    pointer-events: none;
}

.weather-clickable:active {
    transform: scale(0.98);
}

.orb-section {
    text-align: center;
    margin: 30px 0;
}

.input-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 150px;
}

.input-group label {
    display: block;
    color: #4ecdc4;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
}

.input-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.input-group input::placeholder {
    color: #888888;
    text-transform: none;
}

.cosmic-orb {
    width: 120px;
    height: 120px;
    margin: 20px auto;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cosmic-orb:hover {
    transform: scale(1.05);
}

.orb-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.consult-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.consult-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.4);
}

.consult-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-message {
    background: linear-gradient(45deg, #ff4757, #ff6b6b);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s ease;
}

.prediction-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    animation: slideIn 0.8s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.prediction-header {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction-text {
    font-size: 28px;
    line-height: 1.6;
    text-align: center;
    margin: 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.reality-check {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #ff6b6b;
}

.reality-check h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 30px;
}

.reality-check p {
    line-height: 1.5;
    margin-bottom: 15px;
}

.learn-more {
    display: inline-block;
    background: #4ecdc4;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background: #45b7d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 12px;
}

.footer a {
    color: #4ecdc4;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .weather-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    /* Mobile responsiveness for new table */
    .weather-cell {
        min-height: 40px;
        padding: 6px;
    }
    
    .weather-label {
        font-size: 8px;
    }
    
    .weather-value {
        font-size: 10px;
    }
    
    .prediction-text {
        font-size: 16px;
    }
}