/* STW Ambiental Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;500;600;700&display=swap');

/* Fallback for Roundo if not locally installed */
@font-face {
    font-family: 'Roundo';
    src: local('Roundo');
    /* No reliable public CDN for Roundo found, relying on local machine or fallback */
}

:root {
    --primary-dark: #142729;
    --primary-light: #D0FF71;
    --text-light: #e0e0e0;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(208, 255, 113, 0.2);
    
    --font-heading: 'Roundo', 'Quicksand', 'Nunito', sans-serif;
    --font-body: 'Albert Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px rgba(208, 255, 113, 0.5);
}

.auth-button, .btn {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(208, 255, 113, 0.2);
}

.btn:hover, .auth-button:hover {
    background-color: #eaff9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 255, 113, 0.4);
}

/* Header */
header {
    background: linear-gradient(180deg, rgba(20,39,41,1) 0%, rgba(20,39,41,0.8) 100%);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo span {
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-light);
}

/* Main Container */
main {
    flex: 1;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Card Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(208, 255, 113, 0.1);
    border-color: var(--primary-light);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-light);
}

.post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-summary {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    align-self: flex-start;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.post-card:hover .read-more::after {
    transform: translateX(5px);
}

/* Form Styles */
.admin-container {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 10px rgba(208, 255, 113, 0.1);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* Article View Setup */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.service-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.service-links h3 {
    margin-bottom: 1rem;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.service-list li a {
    background: rgba(208, 255, 113, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--primary-light);
    display: inline-block;
}

.service-list li a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}
