@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500&display=swap');

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --text-main: #2C3E50;
    --text-muted: #5b7083;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --error: #FF4757;
    --success: #2ED573;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-container {
    max-width: 900px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.3);
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #e73c7e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

main {
    padding: 2.5rem;
}

.upload-section {
    background: rgba(255, 255, 255, 0.5);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
    border: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upload-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.upload-section h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

input[type="text"], textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input[type="file"] {
    display: none;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.6);
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px dashed var(--secondary);
}

.file-label {
    background: linear-gradient(135deg, var(--secondary), #23a6d5);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 166, 213, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 166, 213, 0.4);
}

#file-name {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

button[type="submit"] {
    background: linear-gradient(135deg, var(--primary), #e73c7e);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    margin-top: 1rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.5);
}

button:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.error {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 71, 87, 0.3);
    display: block;
}

.message.success {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 213, 115, 0.3);
    display: block;
}

.timeline-section h2 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.post {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--glass-border);
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-color: rgba(255,255,255,0.8);
}

.post-img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 2rem;
}

.post-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.post-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.post-date {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: right;
    font-weight: 500;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 2rem;
    font-weight: 500;
}
