/* Hippo-themed CSS with hippopotamus branding */
:root {
    --hippo-primary: #8B4A9B;
    --hippo-secondary: #D4A5D8;
    --hippo-accent: #FF6B9D;
    --hippo-dark: #2C1810;
    --hippo-light: #F8F6F4;
    --hippo-gray: #A0A0A0;
    --hippo-success: #4CAF50;
    --hippo-warning: #FF9800;
    --hippo-error: #F44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--hippo-light) 0%, var(--hippo-secondary) 100%);
    color: var(--hippo-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--hippo-secondary);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--hippo-primary);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-brand .hippo-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--hippo-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-links a:hover {
    color: var(--hippo-primary);
    background: var(--hippo-secondary);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    color: var(--hippo-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero .hippo-logo {
    width: 80px;
    height: 80px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--hippo-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hippo-primary), var(--hippo-accent));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 74, 155, 0.3);
}

.btn-secondary {
    background: var(--hippo-secondary);
    color: var(--hippo-dark);
}

.btn-secondary:hover {
    background: var(--hippo-primary);
    color: white;
}

/* Forms */
.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--hippo-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--hippo-secondary);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--hippo-primary);
    box-shadow: 0 0 0 3px rgba(139, 74, 155, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Chat Interface */
.chat-container {
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--hippo-primary), var(--hippo-accent));
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--hippo-light);
}

.message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.message.user {
    flex-direction: row-reverse;
}

.message-content {
    max-width: 70%;
    padding: 1rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message.user .message-content {
    background: var(--hippo-primary);
    color: white;
}

.message.hippo .message-content {
    background: var(--hippo-secondary);
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--hippo-secondary);
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--hippo-secondary);
    border-radius: 25px;
    margin-right: 0.5rem;
}

.chat-input button {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--hippo-primary);
    color: white;
    cursor: pointer;
    font-weight: 600;
}

/* Website Generation */
.website-section {
    background: rgba(255, 255, 255, 0.9);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: var(--hippo-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--hippo-secondary);
    padding-bottom: 0.5rem;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.entry-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--hippo-accent);
    position: relative;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.entry-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.entry-card:hover .entry-actions {
    opacity: 1;
}

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--hippo-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--hippo-light);
    color: var(--hippo-primary);
}

.btn-icon.delete-entry:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.entry-title {
    font-size: 1.3rem;
    color: var(--hippo-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.entry-details {
    display: grid;
    gap: 0.5rem;
}

.entry-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--hippo-light);
}

.detail-key {
    font-weight: 600;
    color: var(--hippo-dark);
}

.detail-value {
    color: var(--hippo-gray);
    text-align: right;
}

/* Flash Messages */
.flash-messages {
    max-width: 800px;
    margin: 1rem auto;
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.flash-success {
    background: var(--hippo-success);
    color: white;
}

.flash-error {
    background: var(--hippo-error);
    color: white;
}

.flash-warning {
    background: var(--hippo-warning);
    color: white;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        flex-direction: column;
    }
    
    .hero .hippo-logo {
        width: 60px;
        height: 60px;
    }
    
    .container {
        padding: 1rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .entry-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        height: 400px;
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Hippo Personality Elements */
.hippo-quote {
    background: var(--hippo-secondary);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--hippo-primary);
    margin: 1rem 0;
    font-style: italic;
}

.hippo-emoji {
    font-size: 1.2em;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 {
    color: var(--hippo-primary);
    margin-bottom: 1rem;
}

.dashboard-card p {
    color: var(--hippo-gray);
    margin-bottom: 1.5rem;
}
