/* Barnas Chat - Spesialdesign for barn */

/* Grunnleggende styling for barnesiden */
.kids-page {
    background: linear-gradient(135deg, #FFE5B4 0%, #FFCCCB 50%, #E0FFFF 100%);
    min-height: 100vh;
}

/* Navigasjon for barn */
.kids-navbar {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    border-bottom: 4px solid #FF1493;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.kids-navbar .nav-brand h1 {
    color: white;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.kids-navbar .tagline {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.kids-navbar .nav-menu a {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.kids-navbar .nav-menu a:hover {
    color: #FFFF00;
    transform: scale(1.1);
}

.kids-navbar .nav-menu a.active {
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    color: #FF1493;
    font-weight: bold;
}

/* Velkomst-seksjon */
.kids-welcome-section {
    background: linear-gradient(135deg, #87CEEB, #98FB98);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 4px dashed #FF69B4;
}

.kids-welcome-section h2 {
    font-size: 2.5rem;
    color: #2E8B57;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.kids-intro {
    font-size: 1.2rem;
    color: #006400;
    margin-bottom: 2rem;
    font-weight: 500;
}

.kids-rules {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid #FF69B4;
    max-width: 600px;
    margin: 0 auto;
}

.kids-rules h3 {
    color: #FF1493;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.kids-rules ul {
    list-style: none;
    padding: 0;
}

.kids-rules li {
    background: #F0F8FF;
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-radius: 15px;
    border-left: 4px solid #32CD32;
    font-size: 1rem;
    color: #2E8B57;
}

/* Chat-hovedområde */
.kids-chat-container {
    display: flex;
    flex-direction: column;
}

.kids-chat-main {
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar for barn */
.kids-sidebar {
    width: 300px;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    height: fit-content;
    border: 3px solid #FF69B4;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.kids-topics h4 {
    color: #FF1493;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.kids-topic-buttons {
    display: grid;
    gap: 0.8rem;
}

.kids-topic-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: linear-gradient(135deg, #FFE4E1, #FFF0F5);
    border: 2px solid #FF69B4;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #8B008B;
}

.kids-topic-btn:hover {
    background: linear-gradient(135deg, #FF69B4, #FFB6C1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.kids-topic-btn .topic-icon {
    font-size: 1.5rem;
}

.kids-helper {
    margin-top: 2rem;
    background: #F0F8FF;
    border-radius: 15px;
    padding: 1rem;
    border: 2px solid #87CEEB;
}

.kids-helper h4 {
    color: #4169E1;
    margin-bottom: 1rem;
    text-align: center;
}

.helper-character {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.helper-avatar {
    font-size: 2rem;
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4169E1;
}

.helper-speech {
    background: white;
    padding: 0.8rem;
    border-radius: 15px;
    border: 2px solid #87CEEB;
    position: relative;
    flex: 1;
}

.helper-speech::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 15px;
    border: 10px solid transparent;
    border-right-color: #87CEEB;
}

.helper-speech::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 17px;
    border: 8px solid transparent;
    border-right-color: white;
}

.helper-speech p {
    margin: 0;
    color: #2F4F4F;
    font-size: 0.9rem;
}

/* Chat-område */
.kids-chat-area {
    flex: 1;
    background: white;
    border-radius: 20px;
    border: 3px solid #32CD32;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kids-chat-header {
    background: linear-gradient(135deg, #32CD32, #98FB98);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.kids-chat-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.kids-chat-header p {
    margin: 0;
    font-weight: 500;
}

/* Meldinger */
.kids-chat-messages {
    flex: 1;
    padding: 2rem;
    background: #F0FFF0;
    overflow-y: auto;
    min-height: 400px;
    max-height: 500px;
}

.kids-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.kids-message-avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.avatar-robot {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6347, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 3px solid #FF4500;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.kids-message-content {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    max-width: 80%;
    border: 2px solid #98FB98;
    box-shadow: 0 2px 8px rgba(152, 251, 152, 0.3);
}

.kids-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kids-message-header .message-author {
    font-weight: bold;
    color: #FF6347;
    font-size: 1.1rem;
}

.kids-message-header .message-time {
    color: #666;
    font-size: 0.9rem;
}

.kids-message-text {
    color: #2F4F4F;
    line-height: 1.6;
}

.kids-message-text p {
    margin-bottom: 1rem;
}

.kids-message-text ul {
    background: #F0F8FF;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #4169E1;
}

.kids-message-text li {
    margin: 0.5rem 0;
    font-weight: 500;
}

/* Forslag */
.kids-suggestions {
    padding: 1rem 2rem;
    background: #FFFACD;
    border-top: 2px dashed #FFD700;
}

.suggestions-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #B8860B;
}

.kids-suggestion-chips {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.kids-suggestion-chip {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #FFD700, #FFF8DC);
    border: 2px solid #DAA520;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #B8860B;
}

.kids-suggestion-chip:hover {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(218, 165, 32, 0.3);
}

/* Input-område */
.kids-chat-input-area {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 3px solid #32CD32;
}

.input-helper {
    margin-bottom: 0.5rem;
}

.helper-text {
    color: #32CD32;
    font-weight: bold;
    font-size: 1rem;
}

.kids-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#kidsInput {
    width: 100%;
    padding: 1rem;
    border: 3px solid #98FB98;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    background: #F0FFF0;
}

#kidsInput:focus {
    outline: none;
    border-color: #32CD32;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.3);
}

.kids-input-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.kids-clear-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #FFA500, #FFD700);
    border: 2px solid #FF8C00;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: #8B4513;
    transition: all 0.3s ease;
}

.kids-clear-btn:hover {
    background: linear-gradient(135deg, #FF8C00, #FFA500);
    color: white;
    transform: translateY(-2px);
}

.kids-send-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #32CD32, #98FB98);
    border: 2px solid #228B22;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.kids-send-btn:hover {
    background: linear-gradient(135deg, #228B22, #32CD32);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.kids-input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

#kidsCharCount {
    color: #666;
}

#kidsConnectionStatus {
    font-weight: bold;
}

.status-online {
    color: #32CD32;
}

/* Footer for barn */
.kids-footer {
    background: linear-gradient(135deg, #DDA0DD, #E6E6FA);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 4px solid #9370DB;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-message h4,
.footer-safety h4 {
    color: #4B0082;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-message p,
.footer-safety p {
    color: #2E0854;
    line-height: 1.6;
}

/* Responsivt design */
@media (max-width: 768px) {
    .kids-chat-main {
        flex-direction: column;
        padding: 1rem;
    }
    
    .kids-sidebar {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .kids-suggestion-chips {
        flex-direction: column;
    }
    
    .kids-input-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .kids-welcome-section h2 {
        font-size: 2rem;
    }
}