/* CSS Variables */
:root {
    --green-50: #f4f9e8;
    --green-100: #e4f2cb;
    --green-200: #c8e59d;
    --green-300: #a8d46a;
    --green-400: #8bc34a;
    --green-500: #7bc043;
    --green-600: #5dad4a;
    --green-700: #4ca64c;
    --green-800: #3d8c40;
    --green-900: #2d6830;

    --lime-300: #a8e050;
    --lime-400: #8fcc2e;
    --lime-500: #74b310;

    --bg-light: #e8f5d9;
    --bg-card: #f5f9ef;
    --text-dark: #2d4a1e;
    --text-muted: #5a7c4a;

    --gradient-header: linear-gradient(135deg, #4ca64c 0%, #5cb85c 25%, #7bc043 50%, #8bc34a 75%, #5dad4a 100%);
    --gradient-button: linear-gradient(135deg, #8bc34a 0%, #7bc043 50%, #5dad4a 100%);
    --gradient-footer: linear-gradient(135deg, #3d8c40 0%, #4ca64c 50%, #5cb85c 100%);
    
    --shadow-sm: 0 2px 8px rgba(123, 192, 67, 0.15);
    --shadow-md: 0 4px 20px rgba(123, 192, 67, 0.2);
    --shadow-lg: 0 8px 40px rgba(123, 192, 67, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 50px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--gradient-header);
    position: relative;
    padding-bottom: 0;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 100;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    box-shadow: var(--shadow-md);
    background: white;
}

.lang-btn.active {
    box-shadow: var(--shadow-md);
}

.lang-btn.active .chevron-icon {
    transform: rotate(180deg);
}

.globe-icon {
    color: var(--green-600);
}

.lang-current {
    min-width: 1.5rem;
    text-align: center;
}

.chevron-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: var(--green-50);
}

.lang-option.active {
    background: var(--green-100);
    color: var(--green-700);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 3rem;
    text-align: center;
}

.logo {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3rem;
    font-weight: 900;
    font-style: normal;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Navigation */
.nav {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-pill);
    padding: 0.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.nav-link {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    background: transparent;
}

.nav-link.active {
    color: var(--text-dark);
}

/* Highlighted state - text turns white when slider is underneath */
.nav-link.highlighted,
.nav-link.highlighted:hover {
    color: white;
}

/* Navigation Slider */
.nav-slider {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    background: var(--lime-400);
    border-radius: var(--radius-pill);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(143, 204, 46, 0.4);
    pointer-events: none;
}

.header-wave {
    height: 40px;
    margin-top: -1px;
}

.header-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

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

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Featured Section */
.featured-section {
    position: sticky;
    top: 2rem;
}

.featured-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 1rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Placeholder Avatar */
.placeholder-avatar {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
}

.placeholder-avatar svg {
    width: 100%;
    height: 100%;
}

.placeholder-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-700);
    box-shadow: var(--shadow-sm);
}

.featured-badge {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--green-700);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.heart-icon {
    font-size: 1.25rem;
}

/* Deeds Section */
.deeds-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Search */
.search-container {
    display: flex;
    background: white;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--green-400);
    box-shadow: var(--shadow-md);
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: var(--green-600);
}

/* Deeds Grid */
.deeds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Deed Card */
.deed-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.deed-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-300);
}

.deed-card-wide {
    grid-column: span 2;
}

.deed-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.deed-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.deed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deed-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.heart {
    font-size: 1rem;
}

.deed-comments {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.deed-comments svg {
    opacity: 0.7;
}

/* Share Button */
.share-btn {
    background: var(--gradient-button);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-pill);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.share-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--gradient-footer);
    color: white;
    position: relative;
    margin-top: 4rem;
}

.footer-wave {
    height: 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    font-style: normal;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--lime-400);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-newsletter p {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1.25rem;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background: var(--lime-400);
    border: none;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    color: var(--green-900);
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--lime-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-section {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2.25rem;
    }
    
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .deeds-grid {
        grid-template-columns: 1fr;
    }
    
    .deed-card-wide {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-links h3::after,
    .footer-newsletter h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .lang-switcher {
        top: 1rem;
        right: 1rem;
    }
    
    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .header-content {
        padding: 1.5rem 1rem 2rem;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .main-content {
        padding: 2rem 1rem;
    }
    
    .deed-card {
        padding: 1.25rem;
    }
    
    .share-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .footer-content {
        padding: 3rem 1rem 1.5rem;
    }
}

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

.deed-card {
    animation: fadeInUp 0.5s ease forwards;
}

.deed-card:nth-child(1) { animation-delay: 0.1s; }
.deed-card:nth-child(2) { animation-delay: 0.2s; }
.deed-card:nth-child(3) { animation-delay: 0.3s; }
.deed-card:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   PAGE LAYOUTS
   ======================================== */

.page-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* ========================================
   SHARE PAGE
   ======================================== */

.share-page {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.share-header {
    margin-bottom: 2rem;
}

.share-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--green-100);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--green-400);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234a7c59' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--green-500);
    cursor: pointer;
}

/* Sharing Toggle Slider */
.sharing-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--green-50);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    overflow: hidden;
}

.sharing-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sharing-option {
    position: relative;
    z-index: 2;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: calc(var(--radius-md) - 4px);
}

.sharing-option-left {
    grid-column: 1;
    grid-row: 1;
}

.sharing-option-right {
    grid-column: 2;
    grid-row: 1;
}

.sharing-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.sharing-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.sharing-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.sharing-slider {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    width: calc(50% - 0.5rem);
    background: white;
    border-radius: calc(var(--radius-md) - 4px);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    left: 0.5rem;
}

/* Active states */
#anonymous:checked ~ .sharing-slider {
    left: 0.5rem;
}

#public:checked ~ .sharing-slider {
    left: calc(50% + 0rem);
}

#anonymous:checked ~ .sharing-option-left .sharing-title,
#public:checked ~ .sharing-option-right .sharing-title {
    color: var(--green-700);
}

#anonymous:checked ~ .sharing-option-left .sharing-subtitle,
#public:checked ~ .sharing-option-right .sharing-subtitle {
    color: var(--green-600);
}

#anonymous:checked ~ .sharing-option-left .sharing-icon,
#public:checked ~ .sharing-option-right .sharing-icon {
    transform: scale(1.1);
}

/* Hover effects */
.sharing-option:hover .sharing-icon {
    transform: scale(1.05);
}

.sharing-option:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Image Upload Container */
.image-upload-container {
    position: relative;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem;
    border: 2px dashed var(--green-300);
    border-radius: var(--radius-md);
    background: var(--green-50);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover,
.file-upload-label.drag-over {
    border-color: var(--green-500);
    background: var(--green-100);
    color: var(--green-700);
    transform: translateY(-2px);
}

.upload-text {
    font-weight: 600;
    color: var(--green-700);
    font-size: 1rem;
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, calc(33.333% - 0.67rem)));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--green-50);
    border: 2px solid var(--green-200);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.remove-image:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

/* Submit Button */
.submit-btn {
    background: var(--gradient-button);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-page {
    animation: fadeInUp 0.5s ease;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-section h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.about-section p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Astro Top Banner - Full Width at Top of Page */
.astro-top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a0533 0%, #2d1b69 35%, #4c1d95 65%, #1e1b4b 100%);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}

.astro-top-banner:hover {
    background: linear-gradient(135deg, #2d1b69 0%, #4c1d95 35%, #6d28d9 65%, #2d1b69 100%);
}

.astro-top-banner .astro-banner-title {
    letter-spacing: 0.5px;
}

.astro-top-banner svg {
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.astro-top-banner:hover svg {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* Astro Banner */
.astro-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a0533 0%, #2d1b69 35%, #4c1d95 65%, #1e1b4b 100%);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(76, 29, 149, 0.3);
}

.astro-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(76, 29, 149, 0.5);
    background: linear-gradient(135deg, #2d1b69 0%, #4c1d95 35%, #6d28d9 65%, #2d1b69 100%);
}

.astro-banner-title {
    letter-spacing: 0.5px;
}

.astro-banner svg {
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.astro-banner:hover svg {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--gradient-button);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* CTA Section */
.about-cta {
    text-align: center;
    background: var(--green-50);
    border: 2px solid var(--green-200);
}

.about-cta h3 {
    color: var(--green-700);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-button);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   AUTH PAGE (LOGIN/REGISTER)
   ======================================== */

.auth-page {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.5s ease;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: var(--green-50);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.auth-tab.active {
    color: var(--green-700);
}

/* Auth Tab Slider */
.auth-tab-slider {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    background: white;
    border-radius: var(--radius-pill);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: var(--shadow-sm);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form.hidden {
    display: none;
}

.auth-form.slide-in-left,
.auth-form.slide-in-right,
.auth-form.slide-out-left,
.auth-form.slide-out-right {
    display: flex !important;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.forgot-link {
    color: var(--green-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--green-100);
}

.auth-divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Social Auth */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border: 2px solid var(--green-100);
    border-radius: var(--radius-md);
    background: white;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--green-300);
    background: var(--green-50);
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.profile-page {
    animation: fadeInUp 0.5s ease;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.avatar-placeholder svg {
    width: 100%;
    height: 100%;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-500);
    color: white;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-edit-btn:hover {
    background: var(--green-600);
    transform: scale(1.1);
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-joined {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    background: var(--green-100);
    color: var(--green-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--green-600);
}

.profile-stat .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    background: white;
    border-radius: var(--radius-pill);
    padding: 0.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.profile-tab {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-tab.active {
    color: white;
}

/* Tab Slider */
.tab-slider {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    background: var(--green-500);
    border-radius: var(--radius-pill);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* Profile Content */
.profile-deeds,
.profile-settings {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.profile-deeds {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Slide Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.2s ease forwards;
}

.slide-out-right {
    animation: slideOutRight 0.2s ease forwards;
}

.profile-deeds .deed-card {
    animation: none;
}

.deed-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.deed-likes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.profile-share-btn {
    margin-top: 2rem;
    text-decoration: none;
}

/* ========================================
   HOME FEED PAGE
   ======================================== */

.feed-container {
    max-width: 800px;
    margin: 0 auto;
}

.feed-header {
    text-align: center;
    margin-bottom: 2rem;
}

.feed-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feed-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--green-50) 0%, var(--green-100) 100%);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-emoji {
    font-size: 2rem;
}

.welcome-text p {
    color: var(--text-dark);
    margin: 0;
}

.welcome-text a {
    color: var(--green-600);
    font-weight: 700;
    text-decoration: none;
}

.welcome-text a:hover {
    text-decoration: underline;
}

/* Share Button Full Width */
.share-btn-full {
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Feed Grid */
.feed-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Feed Card */
.feed-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}

.feed-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.feed-card-main-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.feed-card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

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

.feed-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feed-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.feed-author-avatar svg {
    width: 100%;
    height: 100%;
}

.feed-author-details {
    display: flex;
    flex-direction: column;
}

.feed-author-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.feed-post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feed-card-content {
    flex: 1;
    margin-bottom: 1rem;
}

.feed-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.feed-card-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Post Images */
.post-images {
    margin: 1rem 0;
    display: grid;
    gap: 0.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-images.single-image {
    grid-template-columns: 1fr;
}

.post-images.two-images {
    grid-template-columns: repeat(2, 1fr);
}

.post-images.three-images {
    grid-template-columns: repeat(2, 1fr);
}

.post-images.three-images .post-image:first-child {
    grid-column: 1 / -1;
}

.post-images.four-images,
.post-images.five-images {
    grid-template-columns: repeat(2, 1fr);
}

.post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--green-50);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.post-images.single-image .post-image {
    aspect-ratio: 4/3;
    max-height: 500px;
}

.more-images-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

/* Feed Content with Image Carousel */
.feed-text-content {
    flex: 1;
    min-width: 0;
}

.feed-image-carousel {
    flex-shrink: 0;
    width: 300px;
    align-self: stretch;
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: visible;
    background: transparent;
    height: 100%;
    min-height: 300px;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0.5rem;
}

.carousel-next {
    right: 0.5rem;
}

.carousel-btn svg {
    color: var(--text-dark);
}

.carousel-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(100, 100, 100, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.carousel-dot:hover {
    background: rgba(80, 80, 80, 0.7);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(60, 60, 60, 0.9);
    width: 24px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .feed-card-main-wrapper {
        flex-direction: column;
    }
    
    .feed-image-carousel {
        width: 100%;
        min-height: 300px;
    }
    
    .carousel-container {
        aspect-ratio: 4/3;
        height: auto;
    }
}

/* Feed Card Actions */
.feed-card-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--green-100);
    margin-top: auto;
}

.like-btn,
.comment-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 2px solid var(--green-100);
    border-radius: var(--radius-pill);
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:not([disabled]):hover,
.comment-btn:not([disabled]):hover {
    border-color: var(--green-400);
    color: var(--green-600);
    background: var(--green-50);
}

.like-btn.liked {
    border-color: var(--green-400);
    color: var(--green-600);
    background: var(--green-50);
}

.like-btn[disabled],
.comment-btn[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.like-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.like-btn.like-animate .like-icon {
    animation: likePopup 0.3s ease;
}

@keyframes likePopup {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.like-count {
    min-width: 1.25rem;
}

.like-text {
    display: none;
}

@media (min-width: 480px) {
    .like-text {
        display: inline;
    }
}

/* Empty Feed */
.empty-feed {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-feed h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-feed p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--green-200);
    border-radius: var(--radius-pill);
    color: var(--green-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--green-50);
    border-color: var(--green-400);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-num:hover {
    border-color: var(--green-300);
    color: var(--green-600);
}

.pagination-num.active {
    background: var(--green-500);
    color: white;
    border-color: var(--green-500);
}

.pagination-dots {
    color: var(--text-muted);
    padding: 0 0.25rem;
}

.pagination-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   PROFILE PAGE (Two Column Layout)
   ======================================== */

.profile-featured {
    position: relative;
}

.profile-avatar-large {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.profile-avatar-large svg {
    width: 100%;
    height: 100%;
}

.profile-info-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: calc(100% - 2rem);
}

.profile-overlay-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(255,255,255,0.8);
}

.profile-overlay-username {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.profile-overlay-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge-small {
    background: rgba(255, 255, 255, 0.9);
    color: var(--green-700);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.profile-stats-mini {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.75rem;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-mini-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--green-600);
}

.stat-mini-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem;
    background: white;
    border: 2px solid var(--green-200);
    border-radius: var(--radius-pill);
    color: var(--green-600);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    background: var(--green-50);
    border-color: var(--green-400);
}

/* Section Title */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Edit Profile Form */
.edit-profile-form {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.3s ease;
}

.edit-profile-form .share-page {
    padding: 1.5rem;
}

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

.cancel-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--green-200);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: var(--green-400);
    color: var(--green-600);
}

.form-buttons .submit-btn {
    flex: 1;
    margin-top: 0;
}

/* Alert Messages */
.alert-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.alert-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Responsive - Feed */
@media (max-width: 768px) {
    .feed-title {
        font-size: 2rem;
    }
    
    .feed-card {
        padding: 1.25rem;
    }
    
    .pagination-btn span {
        display: none;
    }
    
    .pagination-btn {
        padding: 0.75rem;
    }
    
    /* Sharing Toggle Mobile */
    .sharing-toggle {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .sharing-option-left {
        grid-column: 1;
        grid-row: 1;
    }
    
    .sharing-option-right {
        grid-column: 1;
        grid-row: 2;
    }
    
    .sharing-slider {
        width: calc(100% - 1rem);
        height: calc(50% - 0.5rem);
        top: 0.5rem;
        left: 0.5rem;
    }
    
    #anonymous:checked ~ .sharing-slider {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    #public:checked ~ .sharing-slider {
        top: calc(50% + 0rem);
        left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .feed-title {
        font-size: 1.75rem;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
    }
    
    .feed-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .like-btn,
    .comment-btn {
        justify-content: center;
    }
    
    .pagination-numbers {
        display: none;
    }
}

/* ========================================
   RESPONSIVE - NEW PAGES
   ======================================== */

@media (max-width: 768px) {
    .share-page,
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-stats {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .profile-stat .stat-number {
        font-size: 1.5rem;
    }

    .astro-banner {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .share-page,
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

