/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #141E30, #243B55);
    min-height: 100vh;
    color: #fff;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar h1 {
    font-weight: 600;
    letter-spacing: 1px;
}

.top-bar button {
    background: #ff9800;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.top-bar button:hover {
    transform: scale(1.1);
}

/* Form Container */
.form-container {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: 0.3s;
}

input, textarea, select {
    width: 100%;
    margin: 15px 0;
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

input::placeholder,
textarea::placeholder {
    color: #ccc;
}

button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s ease;
}

/* Save Button */
.form-container button {
    background: #00c6ff;
    background: linear-gradient(to right, #0072ff, #00c6ff);
    color: white;
}

.form-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,198,255,0.4);
}

/* Story Cards */
.story-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 20px;
    width: 90%;
    max-width: 500px;
    margin: 25px auto;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    animation: fadeUp 0.4s ease-in-out;
    transition: 0.3s;
}

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

.story-card h3 {
    margin-bottom: 10px;
    font-weight: 600;
}

.story-card p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ddd;
}

.story-card small {
    color: #aaa;
}

/* Buttons inside card */
.story-card button {
    margin-right: 8px;
    margin-top: 10px;
}

/* Like Button */
.story-card button:nth-child(1) {
    background: #ff4b5c;
    color: white;
}

/* Edit Button */
.story-card button:nth-child(2) {
    background: #ffc107;
    color: black;
}

/* Delete Button */
.story-card button:nth-child(3) {
    background: #dc3545;
    color: white;
}

.story-card button:hover {
    opacity: 0.8;
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .top-bar {
        padding: 15px;
    }
    .form-container,
    .story-card {
        width: 95%;
    }
}