/* ===== Robofan Explore - Main Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

.rfe-wrap {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* Header */
.rfe-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin: 30px 0 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.rfe-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,200,255,0.08) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.rfe-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
    position: relative;
}
.rfe-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin: 0;
    position: relative;
}

/* Submit Button */
.rfe-submit-wrap {
    text-align: center;
    margin-bottom: 24px;
}
.rfe-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.rfe-btn-primary {
    background: linear-gradient(135deg, #00c8ff, #0088cc);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,136,204,0.35);
}
.rfe-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,136,204,0.5);
}
.rfe-btn-secondary {
    background: #f1f3f5;
    color: #555;
}
.rfe-btn-secondary:hover { background: #e2e6ea; }

/* Form Card */
.rfe-form-container {
    margin-bottom: 30px;
}
.rfe-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}
.rfe-form-card h2 {
    margin: 0 0 24px;
    font-size: 1.3rem;
    color: #1a1a2e;
}
.rfe-field {
    margin-bottom: 18px;
}
.rfe-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}
.rfe-field input,
.rfe-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    direction: rtl;
}
.rfe-field input:focus,
.rfe-field textarea:focus {
    outline: none;
    border-color: #00c8ff;
    box-shadow: 0 0 0 3px rgba(0,200,255,0.15);
}
.rfe-field small {
    display: block;
    color: #888;
    font-size: 0.82rem;
    margin-top: 5px;
}
.rfe-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
#rfe-form-message {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}
#rfe-form-message.success { background: #d4edda; color: #155724; }
#rfe-form-message.error   { background: #f8d7da; color: #721c24; }

/* Login Notice */
.rfe-login-notice {
    text-align: center;
    padding: 16px;
    background: #fff3cd;
    border-radius: 12px;
    margin-bottom: 24px;
    color: #856404;
}
.rfe-login-notice a { color: #0088cc; }

/* Posts Grid */
.rfe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.rfe-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.rfe-empty span { font-size: 4rem; display: block; margin-bottom: 16px; }

/* Post Card */
.rfe-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rfe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.13);
}

/* Video */
.rfe-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0a0a0a;
}
.rfe-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.rfe-video-fallback {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}
.rfe-video-fallback a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

/* Card Body */
.rfe-card-body { padding: 16px; }

.rfe-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.rfe-avatar {
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
}
.rfe-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a2e;
}
.rfe-date {
    margin-right: auto;
    font-size: 0.78rem;
    color: #aaa;
}

.rfe-caption {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin: 0 0 10px;
}

.rfe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.rfe-tag {
    background: #e8f4fd;
    color: #0088cc;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Actions */
.rfe-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.rfe-like-btn, .rfe-comment-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: #555;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rfe-like-btn:hover { background: #ffe8e8; }
.rfe-comment-toggle:hover { background: #e8f4fd; }
.rfe-like-btn.liked .rfe-heart { animation: heartbeat 0.3s ease; }
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Comments */
.rfe-comments {
    margin-top: 14px;
    border-top: 1px solid #f5f5f5;
    padding-top: 12px;
}
.rfe-comments-list { margin-bottom: 10px; }
.rfe-comment {
    padding: 6px 0;
    font-size: 0.87rem;
    color: #444;
    border-bottom: 1px solid #f9f9f9;
}
.rfe-comment strong {
    color: #1a1a2e;
    margin-left: 8px;
}
.rfe-comment-form {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.rfe-comment-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 0.85rem;
    direction: rtl;
}
.rfe-comment-input:focus { outline: none; border-color: #00c8ff; }
.rfe-comment-submit {
    background: #0088cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
}
.rfe-comment-submit:hover { background: #006fa8; }

/* Responsive */
@media (max-width: 600px) {
    .rfe-grid { grid-template-columns: 1fr; }
    .rfe-title { font-size: 1.5rem; }
    .rfe-form-actions { flex-direction: column; }
}
