/* ================================
   SKY MIND — FULLY NAMESPACED CSS
   Safe for embedding anywhere
   ================================ */

#skymind-widget {
    font-family: Georgia, serif;
    color: #4b4032;
    max-width: 420px;
    margin: 0 auto;
    padding: 1em;
}

/* -------------------------------
   Weather Grid
-------------------------------- */
#skymind-widget .sm-weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

#skymind-widget .sm-weather {
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

#skymind-widget .sm-weather:hover {
    background: rgba(0,0,0,0.05);
}

#skymind-widget .sm-weather img {
    width: 80px;
    height: 80px;
}

@media (max-width: 480px) {
    #skymind-widget .sm-weather-grid {
        grid-template-columns: repeat(120px, 1fr);
    }

    #skymind-widget .sm-weather img {
        width: 72px;
        height: 72px;
    }
}

#skymind-widget .sm-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#skymind-widget .sm-weather img {
    max-width: 100%;
    height: auto;
}


.sm-fade-out {
    opacity: 0;
    transition: opacity 2s ease;
}

.sm-screen {
    opacity: 0;
}

.sm-fade-in {
    opacity: 1;
    transition: opacity 2s ease;
}


/* -------------------------------
   Footer / Version Link
-------------------------------- */
#skymind-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
}

#skymind-footer .sm-footer a {
    text-decoration: none;
    opacity: 0.7;
    color: inherit;
}

#skymind-footer .sm-footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* -------------------------------
   Widget Links (general)
-------------------------------- */
#skymind-widget a {
    color: #8b5e3c;
    text-decoration: underline;
}

#skymind-widget a:hover {
    color: #6d4528;
}

/* -------------------------------
   Screen Layout
-------------------------------- */
#skymind-widget .sm-screen {
    padding: 1em 0;
    text-align: center;
}

#skymind-widget h2 {
    margin-bottom: 1em;
    font-size: 1.4em;
    color: #4b4032;
}

/* -------------------------------
   Tag Cloud 
-------------------------------- */
#skymind-widget .sm-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#skymind-widget .sm-tag {
    padding: 6px 12px;
    background: #f4f1ec;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#skymind-widget .sm-tag:hover {
    background: #eae6df;
}

/* -------------------------------
   Final Message Screen
-------------------------------- */
#skymind-widget .sm-message {
    padding: 1em;
    background: #f4f1ec;
    border-radius: 8px;
    margin-top: 1em;
    line-height: 1.6;
}

/* -------------------------------
   Responsive
-------------------------------- */
@media (max-width: 600px) {
    #skymind-widget {
        padding: 0.5em;
    }

    #skymind-widget .sm-weather-grid {
        gap: 10px;
    }
}



/* -------------------------------
   Back button
---------------------------------- */
.sm-back-btn {
    margin-top: 18px;              /* breathing room above tag cloud */
    margin-bottom: 10px;           /* space below the button */
    padding: 8px 14px;             /* makes it feel like a real button */
    background: #fbeaea;           /* soft, friendly red tint */
    border: 1px solid #e8b3b3;     /* subtle border */
    color: #b44a4a;                /* warm red text */
    font-size: 0.9em;
    border-radius: 8px;            /* rounded, approachable */
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sm-back-btn:hover {
    background: #f7dcdc;           /* slightly stronger red on hover */
    transform: translateY(-1px);   /* tiny lift effect */
}



.sm-final-header {
    text-align: center;
    margin-bottom: 20px;
}

.sm-final-message {
    font-size: 1.1em;
    line-height: 1.5em;
    margin: 20px;
    text-align: left;
}


.sm-support-message {
    margin-top: 20px;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5em;
}



.sm-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
