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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #ffffff;
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: white;
            z-index: 1000;
            padding: 1rem 0;
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        nav {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 600;
            color: #000;
            text-decoration: none;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: #3b82f6;
            border-radius: 50%;
            margin-right: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1.2rem;
        }

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

        .nav-links a {
            text-decoration: none;
            color: #6b7280;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            min-width: 80px;
            text-align: center;
            white-space: nowrap;
        }

        .nav-links a:hover {
            color: #3b82f6;
            background: #f8fafc;
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .welcome-text {
            color: #374151;
            font-weight: 500;
        }

        .logout-btn {
            background: #000;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .logout-btn:hover {
            background: #374151;
            transform: translateY(-1px);
        }

        /* Profile Integration Styles */
        .user-profile-link {
            text-decoration: none;
            color: #374151;
            font-weight: 500;
            margin-right: 1rem;
            padding: 0.5rem 0.75rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid transparent;
        }

        .user-profile-link:hover {
            background: #f8fafc;
            color: #3b82f6;
            border-color: #e5e7eb;
            transform: translateY(-1px);
        }

        .user-profile-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #e5e7eb;
        }

        .post-user-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 0.75rem;
            border: 2px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .post-user-link {
            color: inherit;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            padding: 0.25rem;
            border-radius: 8px;
        }

        .post-user-link:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }

        /* Main Content */
        main {
            margin-top: 100px;
            min-height: calc(100vh - 100px);
            padding: 2rem;
            background-color: #ffffff;
        }

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

        /* Landing Page Styles */
        .landing-hero {
            min-height: 80vh;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            background: #ffffff;
            margin: -2rem -2rem 0 -2rem;
            padding: 4rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .hero-text {
            padding-left: 2rem;
        }

        .landing-hero h1 {
            font-size: 5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            color: #000;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .landing-hero p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            color: #6b7280;
            line-height: 1.6;
            max-width: 500px;
        }

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

        .landing-btn {
            padding: 1rem 2rem;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .landing-btn.primary {
            background: #3b82f6;
            color: white;
        }

        .landing-btn.primary:hover {
            background: #2563eb;
            transform: translateY(-2px);
        }

        .landing-btn.secondary {
            background: transparent;
            color: #000;
            border: 2px solid #000;
        }

        .landing-btn.secondary:hover {
            background: #000;
            color: white;
            transform: translateY(-2px);
        }

        .hero-visual {
            position: relative;
            height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .abstract-shape {
            position: relative;
            width: 400px;
            height: 500px;
            background: linear-gradient(45deg, 
                #3b82f6 0%, 
                #1d4ed8 30%, 
                #1e40af 60%, 
                #1e3a8a 100%);
            border-radius: 40px;
            transform: rotate(-10deg);
            animation: float 6s ease-in-out infinite;
            box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
        }

        .abstract-shape::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.3) 0%, 
                transparent 50%, 
                rgba(0, 0, 0, 0.1) 100%);
            border-radius: 40px;
        }

        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .floating-dot {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #3b82f6;
            border-radius: 50%;
            animation: float-dots 4s ease-in-out infinite;
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
        }

        .floating-dot:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; }
        .floating-dot:nth-child(2) { top: 50%; right: 10%; animation-delay: 1s; }
        .floating-dot:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; }

        @keyframes float {
            0%, 100% { transform: rotate(-10deg) translateY(0px); }
            50% { transform: rotate(-10deg) translateY(-15px); }
        }

        @keyframes float-dots {
            0%, 100% { transform: translateY(0px) scale(1); opacity: 0.8; }
            50% { transform: translateY(-20px) scale(1.3); opacity: 1; }
        }

        .landing-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin: 4rem 0;
        }

        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #f1f5f9;
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .feature-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .feature-card h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
            color: #1f2937;
        }

        .feature-card p {
            color: #6b7280;
            line-height: 1.6;
        }

        .landing-mission {
            background: white;
            border-radius: 20px;
            padding: 4rem 3rem;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #f1f5f9;
            margin: 4rem 0;
        }

        .landing-mission h2 {
            font-size: 3rem;
            margin-bottom: 2rem;
            color: #1f2937;
        }

        .landing-mission p {
            font-size: 1.2rem;
            color: #6b7280;
            line-height: 1.6;
            max-width: 800px;
            margin: 0 auto;
        }

        .stats-section {
            background: #f8fafc;
            color: #1f2937;
            padding: 4rem 2rem;
            text-align: center;
            margin: 4rem -2rem 0 -2rem;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .stat-item h3 {
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #3b82f6;
        }

        .stat-item p {
            font-size: 1.1rem;
            color: #6b7280;
        }

        /* Auth Forms */
        .auth-container {
            position: fixed;
            top: 120px;
            left: 50%;
            transform: translateX(-50%);
            max-width: 500px;
            width: 90%;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
            border: 1px solid #e5e7eb;
            overflow: hidden;
            z-index: 2000;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .auth-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1999;
            display: none;
        }

        .auth-overlay.active {
            display: block;
        }

        .auth-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6b7280;
            z-index: 1;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .auth-close:hover {
            color: #000;
        }

        .auth-form {
            padding: 3rem;
        }

        .auth-form h2 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-align: center;
            color: #1f2937;
        }

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

        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #374151;
        }

        .form-group input, .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
            outline: none;
            font-family: inherit;
        }

        .form-group input:focus, .form-group textarea:focus {
            border-color: #3b82f6;
        }

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

        .submit-btn {
            width: 100%;
            background: #3b82f6;
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 1rem;
        }

        .submit-btn:hover {
            background: #2563eb;
            transform: translateY(-2px);
        }

        .toggle-form {
            text-align: center;
            color: #6b7280;
            cursor: pointer;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .toggle-form:hover {
            color: #3b82f6;
        }

        /* Upload Section */
        .upload-section {
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #f1f5f9;
            padding: 2rem;
            margin-bottom: 2rem;
            display: none;
        }

        .upload-section.active {
            display: block;
        }

        .upload-section h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }

        /* Enhanced Drag & Drop Zone */
        .upload-container {
            position: relative;
            margin-bottom: 1.5rem;
        }

        .drag-drop-zone {
            position: relative;
            border: 3px dashed #d1d5db;
            border-radius: 15px;
            padding: 3rem 2rem;
            text-align: center;
            background: #f9fafb;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            overflow: hidden;
        }

        .drag-drop-zone::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .drag-drop-zone:hover::before {
            left: 100%;
        }

        .drag-drop-zone:hover {
            border-color: #3b82f6;
            background: #eff6ff;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
        }

        .drag-drop-zone.drag-over {
            border-color: #10b981;
            background: #ecfdf5;
            transform: scale(1.02);
            box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
        }

        .drag-drop-zone.drag-over::before {
            background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
        }

        .upload-icon {
            font-size: 4rem;
            color: #6b7280;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            display: block;
        }

        .drag-drop-zone:hover .upload-icon {
            color: #3b82f6;
            transform: scale(1.1);
        }

        .drag-drop-zone.drag-over .upload-icon {
            color: #10b981;
            transform: scale(1.2) rotate(10deg);
        }

        .upload-text {
            font-size: 1.2rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.5rem;
            transition: color 0.3s ease;
        }

        .drag-drop-zone:hover .upload-text {
            color: #3b82f6;
        }

        .drag-drop-zone.drag-over .upload-text {
            color: #10b981;
        }

        .upload-subtext {
            font-size: 0.95rem;
            color: #6b7280;
            margin-bottom: 1.5rem;
        }

        .file-input {
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            top: 0;
            left: 0;
        }

        .browse-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            position: relative;
            overflow: hidden;
        }

        .browse-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .browse-btn:hover::before {
            left: 100%;
        }

        .browse-btn:hover {
            background: #2563eb;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        }

        /* Image Preview */
        .image-preview {
            display: none;
            margin-top: 1.5rem;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            position: relative;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .preview-image {
            width: 100%;
            max-height: 300px;
            object-fit: cover;
            border-radius: 15px;
        }

        .preview-controls {
            position: absolute;
            top: 1rem;
            right: 1rem;
            display: flex;
            gap: 0.5rem;
        }

        .preview-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .remove-btn {
            background: rgba(239, 68, 68, 0.9);
            color: white;
        }

        .remove-btn:hover {
            background: #dc2626;
            transform: scale(1.1);
        }

        .replace-btn {
            background: rgba(59, 130, 246, 0.9);
            color: white;
        }

        .replace-btn:hover {
            background: #2563eb;
            transform: scale(1.1);
        }

        .file-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            color: white;
            padding: 1.5rem 1rem 1rem 1rem;
            font-size: 0.9rem;
        }

        .file-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .file-size {
            opacity: 0.8;
        }

        /* Search Section */
        .search-section {
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #f1f5f9;
            padding: 2rem;
            margin-bottom: 2rem;
            display: none;
        }

        .search-section.active {
            display: block;
        }

        .search-form {
            display: flex;
            gap: 1rem;
        }

        .search-input {
            flex: 1;
            padding: 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
            outline: none;
        }

        .search-input:focus {
            border-color: #3b82f6;
        }

        .search-btn {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-btn:hover {
            background: #2563eb;
            transform: translateY(-1px);
        }

        /* Post Modal */
        .post-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }

        .post-modal.active {
            display: flex;
        }

        .post-modal-content {
            background: white;
            border-radius: 20px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(50px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .post-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .post-modal-close:hover {
            background: white;
            transform: scale(1.1);
        }

        .post-modal-header {
            padding: 2rem 2rem 1rem 2rem;
            border-bottom: 1px solid #f1f5f9;
        }

        .post-modal-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: #1f2937;
            line-height: 1.3;
        }

        .post-modal-meta {
            display: flex;
            gap: 2rem;
            color: #6b7280;
            font-size: 0.95rem;
        }

        .post-modal-body {
            padding: 2rem;
        }

        .post-modal-image {
            width: 100%;
            max-height: 500px;
            object-fit: contain;
            border-radius: 15px;
            margin-bottom: 2rem;
        }

        .post-modal-content-text {
            font-size: 1.1rem;
            line-height: 1.7;
            color: #374151;
            white-space: pre-wrap;
            word-wrap: break-word;
            margin-bottom: 2rem;
        }

        /* Comments Section */
        .comments-section {
            border-top: 1px solid #f1f5f9;
            padding: 2rem;
            background: #f8fafc;
        }

        .comments-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #1f2937;
        }

        .comment-form {
            background: white;
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
        }

        .comment-input {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e5e7eb;
            border-radius: 10px;
            font-size: 1rem;
            outline: none;
            resize: vertical;
            min-height: 80px;
            font-family: inherit;
            margin-bottom: 1rem;
        }

        .comment-input:focus {
            border-color: #3b82f6;
        }

        .comment-submit {
            background: #3b82f6;
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .comment-submit:hover {
            background: #2563eb;
            transform: translateY(-1px);
        }

        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .comment-item {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border: 1px solid #f1f5f9;
            transition: transform 0.2s ease;
        }

        .comment-item:hover {
            transform: translateY(-1px);
        }

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

        .comment-user {
            font-weight: 600;
            color: #1f2937;
        }

        .comment-date {
            font-size: 0.85rem;
            color: #6b7280;
        }

        .comment-text {
            color: #374151;
            line-height: 1.6;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .comment-actions {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid #f1f5f9;
        }

        .delete-comment-btn {
            background: #ef4444;
            color: white;
            border: none;
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .delete-comment-btn:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }

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

        .post-card {
            position: relative;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            cursor: pointer;
            height: 500px;
        }

        .post-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
            border-color: #3b82f6;
        }

        .post-image-container {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
            border-radius: 20px;
        }

        .post-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

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

        .post-content-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(
                180deg, 
                rgba(0, 0, 0, 0.3) 0%,
                rgba(0, 0, 0, 0.1) 30%,
                rgba(0, 0, 0, 0.3) 70%,
                rgba(0, 0, 0, 0.8) 100%
            );
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 1.5rem;
            z-index: 2;
        }

        .post-header-overlay {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .post-user {
            display: flex;
            align-items: center;
            font-weight: 600;
            color: #ffffff;
            font-size: 0.9rem;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .post-user::before {
            content: '';
            display: inline-block;
            width: 8px;
            height: 8px;
            background: #3b82f6;
            border-radius: 50%;
            margin-right: 0.5rem;
            box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
        }

        .post-date {
            display: flex;
            align-items: center;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 500;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .post-date::before {
            content: 'ðŸ“…';
            margin-right: 0.4rem;
            font-size: 0.8rem;
        }

        .post-footer-overlay {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .post-title {
            font-size: 1.5rem;
            font-weight: 800;
            color: #ffffff;
            line-height: 1.2;
            letter-spacing: -0.02em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
            margin-bottom: 0.5rem;
        }

        .post-content-preview {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.9);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-weight: 400;
            text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
            margin-bottom: 1rem;
        }

        .post-actions {
            display: flex;
            gap: 0.75rem;
            align-items: flex-end;
        }

        .action-btn {
            position: relative;
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.9);
            color: #374151;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .action-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.5s ease;
        }

        .action-btn:hover::before {
            left: 100%;
        }

        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            background: white;
        }

        .action-btn.delete {
            background: #ef4444;
            color: white;
            border-color: rgba(239, 68, 68, 0.3);
        }

        .action-btn.delete:hover {
            background: #dc2626;
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
        }

        .action-btn.update {
            background: #10b981;
            color: white;
            border-color: rgba(16, 185, 129, 0.3);
        }

        .action-btn.update:hover {
            background: #059669;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        }

        .action-btn.comment {
            background: #3b82f6;
            color: white;
            border-color: rgba(59, 130, 246, 0.3);
        }

        .action-btn.comment:hover {
            background: #2563eb;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
        }

        .hidden {
            display: none !important;
        }

        /* Mobile responsiveness */
        @media (max-width: 768px) {
            .posts-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 0.25rem;
            }

            .post-card {
                height: 450px;
                margin: 0 0.25rem;
                border-radius: 16px;
            }

            .post-content-overlay {
                padding: 1.25rem;
            }

            .post-title {
                font-size: 1.3rem;
            }

            .post-actions {
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .action-btn {
                flex: 1;
                min-width: calc(50% - 0.25rem);
                justify-content: center;
                padding: 0.7rem 0.8rem;
                font-size: 0.8rem;
            }

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

            main {
                padding: 1rem;
            }

            .landing-hero {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }

            .landing-hero h1 {
                font-size: 2.5rem;
            }

            .landing-buttons {
                flex-direction: column;
                align-items: center;
            }

            .landing-btn {
                width: 100%;
                max-width: 300px;
            }

            .post-modal-content {
                margin: 1rem;
                max-height: calc(100vh - 2rem);
            }

            .post-modal-title {
                font-size: 1.5rem;
            }

            .post-modal-header, .post-modal-body {
                padding: 1.5rem;
            }

            .comments-section {
                padding: 1.5rem;
            }

            /* Navigation mobile fixes */
            .nav-links {
                gap: 0.25rem;
            }
            
            .nav-links a {
                padding: 0.5rem 0.75rem;
                font-size: 0.9rem;
                min-width: 70px;
            }
            
            nav {
                flex-wrap: wrap;
            }

            .drag-drop-zone {
                padding: 2rem 1rem;
            }

            .upload-icon {
                font-size: 3rem;
            }

            .upload-text {
                font-size: 1.1rem;
            }

            .preview-controls {
                top: 0.5rem;
                right: 0.5rem;
            }

            .preview-btn {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .nav-links a {
                padding: 0.4rem 0.6rem;
                font-size: 0.85rem;
                min-width: 60px;
            }
        }

        .ai-tools-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .tool-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            text-decoration: none;
            color: #374151;
            font-weight: 500;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .tool-link:hover {
            background: #3b82f6;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        .tool-link:hover {
            border-color: #3b82f6;
        }

/* Add these new styles to your existing CSS */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

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

.alert p {
    margin: 0.25rem 0;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.form-group input[type="email"] {
    background: #f9fafb;
}

.form-group input[type="email"]:focus {
    background: white;
}
/* Target the post modal content specifically */
.post-modal-content {
    width: 99vw !important;
    max-width: 99vw !important;
    height: 99vh !important;
    max-height: 99vh !important;
    margin: 0 !important;
}

/* Make sure the modal displays correctly */
.post-modal {
    padding: 5vh 5vw !important;
    box-sizing: border-box !important;
}

/* Ensure the image and content fit properly inside */
.post-modal-image {
    max-height: 50vh !important;
    width: 100% !important;
    object-fit: contain !important;
}

/* Make comments section scrollable if needed */
.comments-section {
    max-height: 30vh !important;
    overflow-y: auto !important;
}

/* Mobile specific adjustments */
@media screen and (max-width: 768px) {
    .post-modal-content {
        width: 99vw !important;
        height: 99vh !important;
    }
    
    .post-modal {
        padding: 2.5vh 2.5vw !important;
    }
}

.supportive-highlight {
  display: inline-block;
  font-size: 300%;              /* 3× bigger */
  line-height: 1.05;
  font-weight: 800;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4 40%, #22c55e 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;           /* gradient text */
  cursor: pointer;
  padding: 0.05em 0.15em;
  border-radius: 0.25rem;
  transition: transform 120ms ease, text-shadow 120ms ease;
}
.supportive-highlight:hover {
  transform: scale(1.02);
  text-shadow: 0 0 0.35rem rgba(34,197,94,0.45);
}
.supportive-highlight:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}


.supportive-highlight:active { transform: scale(0.99); }
