/* Frutiger Aero Design System */
:root {
    --primary-blue: #00a8e8;
    --primary-green: #00e8a8;
    --sky-blue: #87ceeb;
    --water-blue: #4dd0e1;
    --glass-white: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg,
        #e0f7ff 0%,
        #b3e5fc 25%,
        #81d4fa 50%,
        #4fc3f7 75%,
        #29b6f6 100%);
    animation: gradientShift 15s ease infinite;
}

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

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

/* Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

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

/* Buttons */
.glass-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.glass-button-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 168, 232, 0.3);
}

.glass-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 168, 232, 0.4);
}

.glass-button-small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.glass-button-small:hover {
    background: rgba(255, 255, 255, 0.5);
}

.glass-button-small.delete {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.3);
    color: #c62828;
}

.glass-button-small.delete:hover {
    background: rgba(244, 67, 54, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Floating Orbs */
.hero-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* About Section */
.about-section {
    margin: 3rem 0;
}

.about-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card h2,
.post-card h3 {
    margin-bottom: 0.5rem;
}

.post-card h2 a,
.post-card h3 a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
    color: var(--primary-green);
}

.post-date {
    color: var(--text-dark);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    margin: 1rem 0;
    line-height: 1.6;
}

.read-more {
    margin-top: 1rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 2rem;
    margin: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
}

.post-content h1 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--glass-border);
}

.post-body {
    margin-top: 2rem;
    line-height: 1.8;
}

.post-body h2 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body h3 {
    color: var(--primary-green);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.post-body pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.post-body code {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.post-body pre code {
    background: none;
    padding: 0;
}

.post-body img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.project-card {
    overflow: hidden;
    padding: 0;
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
}

.project-content {
    padding: 2rem;
}

.project-content h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.project-tech {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Center Button */
.center-button {
    text-align: center;
    margin: 2rem 0;
}

/* Footer */
.glass-footer {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin: 1rem 0;
}

.alert-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #2e7d32;
}

.alert-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

/* Admin Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

.login-card h1 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

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

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

.glass-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

textarea.glass-input {
    resize: vertical;
    font-family: inherit;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

/* Admin Dashboard */
.admin-dashboard {
    margin: 2rem 0;
}

.admin-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    color: var(--primary-blue);
}

.admin-table {
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    border-bottom: 2px solid var(--glass-border);
}

.admin-table tr {
    border-bottom: 1px solid var(--glass-border);
}

.admin-table tr:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.published {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.status-badge.draft {
    background: rgba(158, 158, 158, 0.2);
    color: #424242;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* Editor */
.editor-card {
    max-width: 900px;
    margin: 2rem auto;
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.markdown-editor {
    font-family: 'Courier New', monospace;
    min-height: 400px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Recent Posts Section */
.recent-posts {
    margin: 3rem 0;
}

.recent-posts h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .posts-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .glass-button {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .actions {
        flex-direction: column;
    }
}
