@import url('header-styles.css');
@import url('drawer-styles.css');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    direction: rtl;
}

.header {
    background: white;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: bold;
}

.logo-m { color: #4285f4; }
.logo-a1 { color: #ea4335; }
.logo-n { color: #fbbc04; }
.logo-a2 { color: #34a853; }

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.login-btn {
    background: transparent;
    border: 2px solid #666;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #666;
    color: white;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.subtitle {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

.subtitle a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 600;
}

.search-box {
    background: white;
    border-radius: 30px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}

.search-icon {
    color: #999;
    font-size: 20px;
}

.search-input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    background: transparent;
}

.post {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    flex-shrink: 0;
}

.avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.badge {
    position: absolute;
    bottom: -2px;
    left: -2px;
    background: #4285f4;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 2px solid white;
}

.post-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.post-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4285f4;
}

.post-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    flex: 1;
}

.post-body {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-body.has-thumbnail {
    flex-direction: row-reverse;
}

.post-thumbnail {
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.post-content {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 15px;
}

.post-media {
    margin-bottom: 15px;
}

.post-media-full {
    margin-bottom: 15px;
}

.post-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    float: left;
    margin-left: 15px;
}

.post-video {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

/* Loading styles */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.post-action:hover {
    color: #4285f4;
}

.post-action span:first-child {
    transition: transform 0.2s;
}

.post-action svg {
    transition: transform 0.2s;
}

.post-action:hover svg {
    color: #e1306c;
}

.like-action:hover svg {
    fill: #e1306c;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.3s;
}

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

.share-content h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.share-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.share-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: white;
    transition: transform 0.2s;
}

.share-buttons button:nth-child(1) {
    background: #1877f2;
}

.share-buttons button:nth-child(2) {
    background: #1da1f2;
}

.share-buttons button:nth-child(3) {
    background: #25d366;
}

.share-buttons button:hover {
    transform: scale(1.05);
}

.close-modal {
    width: 100%;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.close-modal:hover {
    background: #e0e0e0;
}

.new-comment {
    color: #4285f4;
    font-weight: 600;
    margin-right: auto;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.6);
}

.fab:active {
    transform: scale(0.95);
}

.fab svg {
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 36px;
    }
    
    .container {
        padding: 20px 15px;
    }

    .fab {
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
    }
}