:root {
    --primary-color: #4a69bd;
    --primary-dark: #34498a;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --light-gray: #ddd;
    --post-bg: #fafafa;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    
    /* Additional colors */
    --accent-color: #e07c24;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #5a78cc;
    --primary-dark: #4967b8;
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --light-gray: #333;
    --post-bg: #1e1e1e;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: color var(--transition-speed),
                background-color var(--transition-speed);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navigation styles */
.main-nav {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 10px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-nav a.active {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Footer links styles */
.footer-links {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--post-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.footer-links h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-link-grid a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.2s;
}

.footer-link-grid a:hover {
    background-color: rgba(74, 105, 189, 0.1);
    text-decoration: underline;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(rgba(255, 255, 255, 0.1) 10%, transparent 10.5%);
    background-size: 20px 20px;
    transform: rotate(30deg);
    pointer-events: none;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 8px;
}

main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    main {
        grid-template-columns: 3fr 2fr; /* Make the post form section larger than the wall section */
    }
}

/* Make the post form section more prominent */
.post-form {
    background-color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 2;
    position: relative;
}

.post-form h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 25px;
}

.post-form h2::after {
    width: 80px;
    height: 4px;
    margin: 10px auto 0;
}

section {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-speed);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

[data-theme="dark"] input, 
[data-theme="dark"] textarea, 
[data-theme="dark"] select {
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--text-color);
    border-color: var(--primary-color);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.3);
}

textarea {
    min-height: 220px; /* Significantly increased height */
    resize: vertical;
    line-height: 1.6;
    padding: 20px; /* More padding for better spacing */
    font-size: 1.1rem; /* Larger font size */
    border-width: 2px; /* More prominent border */
    transition: all 0.3s ease;
}

textarea:focus {
    box-shadow: 0 0 0 4px rgba(74, 105, 189, 0.3); /* More prominent focus state */
}

/* Text box container styles */
.text-box-container {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

/* Text box controls row */
.text-box-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

input[type="file"] {
    border: 1px dashed var(--primary-color);
    background-color: rgba(74, 105, 189, 0.05);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    background-color: rgba(74, 105, 189, 0.1);
}

#image-preview {
    margin-top: 10px;
    max-width: 100%;
}

#image-preview img {
    max-width: 100%;
    max-height: 200px;
    display: block;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

/* Loading indicator */
.loading-indicator {
    padding: 15px;
    text-align: center;
    color: var(--primary-color);
    font-style: italic;
    position: relative;
}

.loading-indicator:after {
    content: "";
    animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40%, 60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.error {
    color: #d9534f;
    padding: 10px;
    border-radius: 4px;
    background: rgba(217, 83, 79, 0.1);
    text-align: center;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: block;
    width: 100%;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(74, 105, 189, 0.3);
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: opacity var(--transition-speed);
    opacity: 0;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 105, 189, 0.4);
}

button:hover::after {
    opacity: 1;
}

button:active {
    transform: translateY(1px);
}

.wall {
    min-height: 500px;
}

.post {
    border: none;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    background-color: var(--post-bg);
    transition: all var(--transition-speed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-author {
    font-weight: 600;
    color: var(--primary-color);
}

.post-time {
    color: #777;
    font-size: 0.9rem;
}

.post-content {
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.post-image img, .post-video video {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.post-image img:hover, .post-video video:hover {
    transform: scale(1.01);
}

#video-preview video {
    max-width: 100%;
    max-height: 240px;
    display: block;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.empty-message {
    color: #999;
    text-align: center;
    font-style: italic;
    padding: 40px 0;
}

/* Ad containers */
.ad-container {
    background-color: var(--post-bg);
    border-radius: 12px;
    padding: 20px;
    margin: 30px auto;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.ad-horizontal {
    min-height: 100px;
    width: 100%;
}

.ad-in-feed {
    margin: 0 0 30px 0;
}

.ad-label {
    position: absolute;
    top: 5px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    color: #777;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 1;
}

.ad-container ins {
    display: block;
    width: 100%;
    height: 100%;
}

/* Theme toggle switch */
.theme-switch-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 45px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: rgba(255, 255, 255, 0.4);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 16px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2c3e50;
}

input:checked + .slider:before {
    transform: translateX(21px);
}

/* Icons for theme switch */
.slider:after {
    content: "🌞";
    position: absolute;
    left: 6px;
    top: 0px;
    font-size: 14px;
}

input:checked + .slider:after {
    content: "🌙";
    position: absolute;
    left: 25px;
    top: 0px;
    font-size: 14px;
}

/* Search bar */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 10px auto 0;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
}

.toast {
    background-color: var(--post-bg);
    color: var(--text-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s, fadeOut 0.5s 2.5s forwards;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--danger-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.toast-message {
    flex-grow: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
    font-size: 1.2em;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Post management buttons */
.post-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.post-action-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.2s;
}

.post-action-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .post-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Reactions */
.post-reactions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reaction-btn {
    background: none;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.reaction-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .reaction-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.reaction-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Comments */
.post-comments {
    margin-top: 15px;
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
}

.comment {
    padding: 10px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

[data-theme="dark"] .comment {
    background-color: rgba(255, 255, 255, 0.02);
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-content {
    margin-top: 5px;
    font-size: 0.9rem;
}

.add-comment {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.add-comment input {
    flex-grow: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.add-comment button {
    padding: 5px 15px;
    border-radius: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.category-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tag:hover {
    background-color: var(--primary-dark);
}

.category-tag.active {
    background-color: var(--accent-color);
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.post-category {
    background-color: var(--light-gray);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
}

/* Storage usage indicator */
.storage-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--post-bg);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: var(--box-shadow);
    font-size: 0.8rem;
    display: none; /* Hidden by default, shown with JS */
}

.storage-progress {
    width: 100%;
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.storage-bar {
    height: 100%;
    width: 0%; /* Set by JS */
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.storage-warning .storage-bar {
    background-color: var(--warning-color);
}

.storage-critical .storage-bar {
    background-color: var(--danger-color);
}

/* Emoji picker */
.emoji-picker {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: var(--post-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 250px;
    z-index: 10;
    display: none; /* Hidden by default */
}

.emoji-picker button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.emoji-picker button:hover {
    background-color: var(--light-gray);
}

.emoji-btn {
    background-color: var(--light-gray) !important;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 140px;
    transition: all 0.2s;
}

.emoji-btn:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Character counter */
.char-counter {
    font-size: 0.9rem;
    color: #999;
    display: inline-block;
    text-align: right;
}

.char-counter.warning {
    color: var(--warning-color);
}

.char-counter.danger {
    color: var(--danger-color);
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Formatting toolbar */
.formatting-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
}

.format-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.format-btn:hover {
    background-color: var(--light-gray);
}

/* Submit button style */
#submit-post {
    padding: 16px 30px;
    font-size: 1.2rem;
    margin-top: 10px;
    background-color: var(--accent-color);
    background-image: linear-gradient(135deg, var(--accent-color) 0%, #c06020 100%);
    box-shadow: 0 6px 16px rgba(224, 124, 36, 0.4);
    transition: all 0.3s ease;
}

#submit-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(224, 124, 36, 0.5);
}

/* Loading animations */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s infinite linear;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Data export/import */
.data-management {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--post-bg);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    /* Hidden by default, only shown to owner via JS */
    display: none;
}

.data-management h3 {
    margin-bottom: 15px;
}

.data-buttons {
    display: flex;
    gap: 10px;
}

.data-btn {
    padding: 10px 15px;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.data-btn:hover {
    background-color: var(--primary-dark);
}

.import-file {
    display: none;
}

/* Improve responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 20px;
    }
    
    .post {
        padding: 15px;
    }
    
    .ad-container {
        padding: 15px;
        margin: 20px auto;
    }
    
    .ad-horizontal {
        min-height: 90px;
    }
}

/* Loading animation for image processing */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-indicator {
    padding: 20px;
    text-align: center;
    background-color: rgba(74, 105, 189, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0047ab;
        --primary-dark: #003380;
        --bg-color: #ffffff;
        --text-color: #000000;
    }
    
    input, textarea, .post {
        border: 2px solid #000;
    }
}

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion) {
    *, *::before, *::after {
        animation-duration: 0.001s !important;
        transition-duration: 0.001s !important;
    }
}

/* Share modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--post-bg);
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    width: 80%;
    max-width: 500px;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-modal:hover {
    opacity: 1;
}

#share-text {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    margin: 15px 0;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    background-color: var(--post-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

.share-url {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    word-break: break-all;
    color: var(--text-color);
}

[data-theme="dark"] .share-url {
    background-color: rgba(255, 255, 255, 0.05);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons button {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.share-buttons button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.share-buttons #share-twitter-btn {
    background-color: #1DA1F2;
}

.share-buttons #share-twitter-btn:hover {
    background-color: #0d8edb;
}

.share-buttons #share-facebook-btn {
    background-color: #4267B2;
}

.share-buttons #share-facebook-btn:hover {
    background-color: #365899;
}

.share-buttons #share-email-btn {
    background-color: #EA4335;
}

.share-buttons #share-email-btn:hover {
    background-color: #d33426;
}

/* Dark mode adjustments */
[data-theme="dark"] #share-text {
    background-color: rgba(30, 30, 30, 0.9);
    color: var(--text-color);
    border-color: var(--primary-color);
}

/* Mobile responsiveness for share modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 30% auto;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons button {
        width: 100%;
    }
}
