.ideapaja-meta {display: none !important;}



.page-template-template-ideapaja .top-bar
{background:var(--primary-blue);
color:#fff !important;}


.ideapaja-container {min-height: 500px;}


.ideapaja-hero {text-align:center;}


.ideapaja-list{ display:flex; flex-direction:column; gap:15px; }
.ideapaja-item{ border:1px solid #ccc; padding:10px; border-radius:8px; background:#fafafa; }
.ideapaja-nickname{ font-size:0.9em; color:#666; }
#ideapaja-form input, #ideapaja-form textarea{ width:100%; margin-bottom:8px; padding:8px; border-radius:5px; border:1px solid #ccc; }



/* Grid container */
.ideapaja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 520px)); /* kiinteä max-leveys */
    gap: 20px;
    margin: 20px 0;
    justify-content: center; /* keskittää koko gridin rivin */
}


.ideapaja-grid {
    max-width: 1200px;
    margin: 20px auto; /* keskittää gridin sivulle */
}

@media (max-width: 768px) {
    .ideapaja-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}





/* Kortin perus-tyyli */
.ideapaja-card {
    position: relative;
 background-color:rgba(0,0,0,0.7);
    color: #fff;
    /* Kevyempi varjo oletuksena */
        box-shadow: 0 12px 40px rgba(43,179,192,0.35);
    border-radius: 12px;
    padding: 25px 15px;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1);
}

.ideapaja-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
      box-shadow: 0 12px 40px rgba(43,179,192,0.35);
    transition: box-shadow 0.3s ease;
}

.ideapaja-card:hover {
        box-shadow: 0 12px 40px rgba(43,179,192,0.35);
}

.ideapaja-card:hover::after {
    box-shadow: 0 0 20px 4px rgba(43,179,192,0.5); /* revontuli-reuna */
}



/* Kortin otsikko ja sisältö */
.ideapaja-card h3 {
    margin-top: 0;
    font-size: 21px;
color: var(--aurora-green);
        margin-bottom: 0px;
}
.ideapaja-date {font-size:0.6rem;}
.ideapaja-card p {
    font-size: 14px;
    color: #fff;
	}

/* Nimimerkki */
.ideapaja-nickname {
    display: block;
    font-style: italic;
    color: #888;
    margin-top: 10px;
}

/* Meta container: upvote + status */
.ideapaja-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

/* Upvote-nappi */
.ideapaja-upvote {
    background: linear-gradient(135deg, #2bb3c0, #1f3c88);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 150ms cubic-bezier(0.4,0,1,1), box-shadow 150ms ease;
}

.ideapaja-upvote:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(43,179,192,0.45);
}





.ideapaja-upvote:disabled {
    background: #aaa;
    cursor: default;
}

/* Äänimäärä */
.ideapaja-votes {
    font-weight: bold;
    margin-right: 10px;
    color: var(--aurora-teal);
    font-size: 1.2rem;
}
/* Status-lable */
.ideapaja-status {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.ideapaja-status.tyon_alla {
    background: #f0ad4e; /* oranssi */
}

.ideapaja-status.toteutunut {
    background: #5cb85c; /* vihreä */
}

.ideapaja-upvote.voted {
    background: transparent;
    color: #888;
    border: 1px solid #888;
    position: relative;
    padding-left: 17px;
}

/* Lisää pieni X oikeaan kulmaan */
.ideapaja-upvote.voted::after {
    content: '✖';
    position: absolute;
    top: 5px;
    left: 4px;
    font-size: 0.9rem;
    color: #888;
}


/* ===== OVERLAY ILMOITUS IDEAN JÄTÖSTÄ ===== */

#ideapaja-overlay-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    z-index: 10001; /* Korkeampi kuin muut */
    display: none;
    text-align: center;
    animation: fadeInScale 0.3s ease-out;
    border: 3px solid #4CAF50;
}

/* Overlay tausta */
#ideapaja-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000; /* Alempi kuin ilmoitus */
    display: none;
    backdrop-filter: blur(3px);
}

/* Ilmoituksen sisältö */
.ideapaja-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ideapaja-overlay-icon {
    font-size: 60px;
    color: #4CAF50;
    animation: bounce 0.5s ease;
}

.ideapaja-overlay-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.ideapaja-overlay-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.ideapaja-overlay-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.ideapaja-overlay-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.ideapaja-overlay-button:active {
    transform: translateY(0);
}

/* Animaatiot */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

/* Automaattisen häviämisen animaatio */
.fade-out {
    animation: fadeOut 0.3s ease-out forwards !important;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Mobiilioptimointi */
@media (max-width: 600px) {
    #ideapaja-overlay-notification {
        padding: 30px 20px;
        width: 95%;
    }
    
    .ideapaja-overlay-icon {
        font-size: 50px;
    }
    
    .ideapaja-overlay-title {
        font-size: 20px;
    }
    
    .ideapaja-overlay-message {
        font-size: 14px;
    }
}





/* Kirjautumis-overlay */
#ideapaja-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
}

#ideapaja-login-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
   background:
        radial-gradient(
            ellipse at center,
            rgba(43,179,192,0.8) 0%,
            rgba(37,58,101,0.85) 50%,
            rgba(20,35,70,0.95) 100%
        );
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 99999;
    padding: 40px 30px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: ideapajaOverlayFadeIn 0.3s ease-out;
        border: 1px solid var(--aurora-teal);
}

#ideapaja-login-overlay.fade-out {
    animation: ideapajaOverlayFadeOut 0.3s ease-out forwards;
}

.ideapaja-login-content {
    position: relative;
}

.ideapaja-login-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.ideapaja-login-title {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 24px;
}

.ideapaja-login-message {
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 16px;
}

.ideapaja-login-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 10px;
}

.ideapaja-login-button {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-width: 120px;
}

.ideapaja-login-button.login-btn {
    background: #4CAF50;
    color: white;
}

.ideapaja-login-button.register-btn {
    background: #2196F3;
    color: white;
}

.ideapaja-login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.ideapaja-login-button.login-btn:hover {
    background: #45a049;
}

.ideapaja-login-button.register-btn:hover {
    background: #0b7dda;
}

.ideapaja-login-close {
    position: absolute;
    top: -30px;
    right: -30px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ideapaja-login-close:hover {
    background: rgba(0,0,0,0.7);
}

/* Vanhat overlay-tyylit (säilytä nämä myös) */
#ideapaja-overlay-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 99999;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: ideapajaOverlayFadeIn 0.3s ease-out;
}

#ideapaja-overlay-notification.fade-out {
    animation: ideapajaOverlayFadeOut 0.3s ease-out forwards;
}

@keyframes ideapajaOverlayFadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes ideapajaOverlayFadeOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

.ideapaja-overlay-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.ideapaja-overlay-title {
    margin: 0 0 10px 0;
    color: #333;
}

.ideapaja-overlay-message {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ideapaja-overlay-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.ideapaja-overlay-button:hover {
    background: #45a049;
}






.leave-idea {
    background: radial-gradient(circle at center, #253a65 0%, #3a4f85 70%);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    font-size: 1rem;
    margin: 20px 0;
}




