/* Profile page specific styles */

/* White background for profile page */
body {
    background: white !important;
}

body::before {
    display: none !important;
}

/* White header for profile page */
.header {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .logo a {
    text-decoration: none;
}

.header .logo h1 {
    color: #ff6b35 !important;
}

.header .logo a:hover h1 {
    color: #e55a2b;
}

/* White footer for profile page */
.footer {
    background: white !important;
    color: #1E0E62 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-left h3 {
    color: #ff6b35 !important;
}

.footer-left p {
    color: #1E0E62 !important;
    opacity: 1 !important;
}

.footer-right p {
    color: #1E0E62 !important;
    opacity: 1 !important;
}

.social-links a {
    color: #1E0E62 !important;
}

.social-links a:hover {
    color: #ff6b35 !important;
}

.main-container {
    margin-top: 80px;
    padding: 2rem;
    background: white;
    min-height: calc(100vh - 80px - 120px);
}

.profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 3rem;
}

.profile-title {
    font-size: 2rem;
    color: #1E0E62;
    font-weight: 600;
    margin: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #1E0E62;
    font-size: 1rem;
}

.info-value {
    color: #333;
    font-size: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-value.readonly {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: 1rem;
    font-weight: normal;
    box-shadow: none;
    display: inline;
}

/* Remove password-container and user-type specific password styles */

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.edit-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.edit-btn i {
    font-size: 1rem;
}

/* Header styles for profile page */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: transparent;
}

.search-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #f7931e;
}

/* User dropdown styles */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.user-dropdown-toggle:hover {
    background: #f7931e;
    transform: translateY(-2px);
}

.user-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown.active .user-dropdown-toggle i {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}

.logout-btn:hover {
    background: #fee;
    color: #e74c3c !important;
}

.user-type {
    background: #f8f9fa;
    color: #333;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    display: inline-block;
    min-width: 120px;
}

.user-type.user-type-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 2px solid #FFD700;
    color: #8B4513;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.user-type.user-type-diamond {
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 50%, #B8860B 100%);
    border: 2px solid #B8860B;
    color: #2C2C2C;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.user-type.user-type-diamond::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-container {
        order: 3;
        margin: 0;
        width: 100%;
        max-width: none;
    }
    
    .nav {
        order: 2;
    }
    
    .user-dropdown-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-dropdown-menu {
        min-width: 180px;
        left: 0;
        right: auto;
    }
    
    .dropdown-item {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .profile-container {
        padding: 1.5rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-placeholder {
        font-size: 2.5rem;
    }
    
    .profile-title {
        font-size: 1.5rem;
    }
    
    .info-group {
        gap: 0.3rem;
    }
    
    .info-label {
        font-size: 0.9rem;
    }
    
    .info-value {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .edit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        margin-bottom: 1.5rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-placeholder {
        font-size: 2rem;
    }
    
    .profile-title {
        font-size: 1.3rem;
    }
    
    .profile-info {
        gap: 1rem;
    }
    
    .edit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
} 

.info-group .user-type {
    display: block;
    margin: 0 auto;
} 

.username-copy-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.username-copy-container .info-value.readonly {
    background: #f4f6fa;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    color: #1E0E62;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 2px rgba(30,14,98,0.03);
    transition: background 0.2s;
}

.copy-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    color: #6c757d;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.copy-btn:hover, .copy-btn:focus {
    background: #f4f6fa;
    color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255,107,53,0.08);
}
.copy-btn:active {
    background: #ffe5d1;
    color: #e55a2b;
} 

/* Modal styles for edit profile */
#editProfileModal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(30, 14, 98, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}
#editProfileModal[style*='display:none'] {
    display: none !important;
}
.modal-content {
    background: #fff;
    margin: auto;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(30,14,98,0.18);
    max-width: 400px;
    width: 100%;
    position: relative;
}
.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s;
}
.close:hover {
    color: #ff6b35;
}
.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.form-group label {
    font-weight: 500;
    color: #1E0E62;
}
.form-group input[type="text"],
.form-group input[type="file"] {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
}
.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
} 

/* User Publications Screen Styles */
.publications-title {
    text-align: center;
    font-size: 2rem;
    color: #2d2053;
    margin: 2rem 0 1.5rem 0;
    font-weight: 700;
}
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}
.publication-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border: 2px solid #2d2053;
    border-radius: 16px;
    padding: 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(44, 32, 83, 0.04);
    position: relative;
}
.publication-image {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    background: #f3f3f3;
}
.publication-content {
    flex: 1;
}
.publication-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d2053;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.publication-description {
    color: #444;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.publication-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}
.publication-btn {
    border: none;
    border-radius: 30px;
    padding: 0.7rem 1.7rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.publication-btn.edit {
    background: #ff9800;
    color: #fff;
}
.publication-btn.delete {
    background: #e74c3c;
    color: #fff;
}
.publication-btn.publish {
    background: #2d2053;
    color: #fff;
    position: relative;
    padding: 0.7rem 1.7rem;
    font-size: 1rem;
    box-sizing: border-box;
}
.publication-badge {
    background: #ff9800;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.2rem 0.8rem;
    margin-left: 0.7rem;
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
}
.publication-btn.publish .badge-new {
    background: #ff9800;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.1rem 0.7rem;
    margin-left: 0.5rem;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.pagination button, .pagination span {
    border: 1px solid #ccc;
    background: #fff;
    color: #2d2053;
    border-radius: 6px;
    padding: 0.5rem 1.1rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.pagination .active {
    background: #ff9800;
    color: #fff;
    border: 1px solid #ff9800;
}
.add-publication-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.add-publication-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f7931e 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 32, 83, 0.08);
}
.add-publication-btn:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff9800 100%);
} 

/* Edit Publication Screen Styles */
.edit-publication-title {
    text-align: center;
    font-size: 2rem;
    color: #2d2053;
    margin: 2.5rem 0 2rem 0;
    font-weight: 700;
}
.edit-publication-form {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 2px 16px rgba(44, 32, 83, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.edit-publication-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.edit-publication-form .form-row {
    display: flex;
    gap: 1.5rem;
}
.edit-publication-form .form-row .form-group {
    flex: 1;
}
.edit-publication-form label {
    font-weight: 600;
    color: #2d2053;
    margin-bottom: 0.2rem;
}
.edit-publication-form input[type="text"],
.edit-publication-form input[type="number"],
.edit-publication-form input[type="email"],
.edit-publication-form textarea,
.edit-publication-form select {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: #faf9fd;
    color: #2d2053;
    transition: border-color 0.2s;
}
.edit-publication-form input[type="text"]:focus,
.edit-publication-form input[type="number"]:focus,
.edit-publication-form input[type="email"]:focus,
.edit-publication-form textarea:focus,
.edit-publication-form select:focus {
    border-color: #ff9800;
    outline: none;
}
.edit-publication-form textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

/* WhatsApp input group styles */
.whatsapp-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.whatsapp-prefix {
    width: 120px;
    flex-shrink: 0;
}

.whatsapp-number {
    flex: 1;
}

.edit-publication-form .whatsapp-prefix,
.edit-publication-form .whatsapp-number {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background: #faf9fd;
    color: #2d2053;
    transition: border-color 0.2s;
    height: auto;
}

.edit-publication-form .whatsapp-prefix:focus,
.edit-publication-form .whatsapp-number:focus {
    border-color: #ff9800;
    outline: none;
}

/* Styled input with icon */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #ff9800;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.styled-input {
    padding-left: 3rem !important;
    background: linear-gradient(135deg, #faf9fd 0%, #f5f4f8 100%) !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.styled-input:focus {
    border-color: #ff9800 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15) !important;
    transform: translateY(-1px);
}

.styled-input:hover {
    border-color: #ffb84d !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Special styling for social media and URL icons */
.fa-instagram.input-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.fa-play-circle.input-icon {
    background: linear-gradient(45deg, #ff3366 0%, #ff6b35 50%, #ffb84d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.fa-globe.input-icon {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

/* Mobile responsiveness for styled inputs */
@media (max-width: 768px) {
    .input-icon {
        left: 0.8rem;
        font-size: 1rem;
    }
    
    .fa-instagram.input-icon,
    .fa-play-circle.input-icon,
    .fa-globe.input-icon {
        font-size: 1.1rem;
    }
    
    .styled-input {
        padding-left: 2.5rem !important;
        font-size: 0.95rem;
    }
}

/* Mobile responsiveness for WhatsApp input */
@media (max-width: 768px) {
    .whatsapp-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .whatsapp-prefix {
        width: 100%;
    }
}

@media (min-width: 769px) {
    /* Optimize full-width WhatsApp input for desktop */
    .whatsapp-input-group {
        max-width: 100%;
    }
    
    .whatsapp-prefix {
        width: 140px;
    }
    
    .whatsapp-number {
        flex: 1;
        max-width: calc(100% - 150px);
    }
}
.photo-preview-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.photo-preview-container .photo-preview {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f3f3;
    box-shadow: 0 1px 6px rgba(44,32,83,0.07);
}
.photo-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.photo-preview .delete-photo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px rgba(44,32,83,0.12);
    transition: background 0.2s;
}
.photo-preview .delete-photo-btn:hover {
    background: #c0392b;
}
.photo-upload-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
#uploadPhotoBtn {
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
#uploadPhotoBtn:hover {
    background: #f7931e;
}
.photo-input-label {
    color: #999;
    font-size: 0.95rem;
}
.form-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}
.edit-publication-form .btn.btn-primary {
    background: linear-gradient(135deg, #ff9800 0%, #f7931e 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 32, 83, 0.08);
}
.edit-publication-form .btn.btn-primary:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff9800 100%);
}
.edit-publication-form .btn.btn-secondary {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 32, 83, 0.08);
}
.edit-publication-form .btn.btn-secondary:hover {
    background: #c0392b;
}
@media (max-width: 700px) {
    .edit-publication-form {
        padding: 1.2rem 0.5rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0.7rem;
    }
} 

.publish-btn-container {
  position: relative;
  display: inline-block;
}
.coming-soon-badge {
  background: #ff9800;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.2em 0.7em;
  position: absolute;
  top: -12px;
  right: -12px;
  box-shadow: 0 1px 4px rgba(44,32,83,0.08);
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Mobile Navigation Styles - Same as search screen */
/* Mobile-only elements (hidden on desktop) */
.mobile-only {
    display: none;
}

/* Mobile Back Button */
.mobile-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
    flex-grow: 0;
    border: none;
}

.mobile-back-btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mobile-back-btn i {
    font-size: 1rem;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ff6b35;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px; /* Match header height */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.mobile-nav.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Force mobile nav to work on mobile screens */
@media (max-width: 900px) {
    .mobile-nav {
        display: none; /* Hidden by default */
    }
    
    .mobile-nav.active {
        display: block !important; /* Show when active */
    }
}

.mobile-nav-links {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-user-name {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 1rem;
}

.mobile-dropdown-item:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.mobile-dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
    }
    
    .main-container {
        overflow-x: hidden;
        padding: 1rem;
    }
    
    /* Hide desktop navigation and show mobile menu */
    .logo {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    /* User Publications Mobile Styles */
    .publications-title {
        font-size: 1.5rem;
        margin: 1rem 0;
        padding: 0 0.5rem;
    }
    
    .publications-list {
        max-width: 100%;
        padding: 0 0.5rem;
        gap: 1.5rem;
    }
    
    .publication-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .publication-image {
        width: 100%;
        max-width: 200px;
        height: 120px;
        align-self: center;
    }
    
    .publication-content {
        width: 100%;
        text-align: center;
    }
    
    .publication-title {
        font-size: 1rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .publication-description {
        font-size: 0.9rem;
        word-break: break-word;
        hyphens: auto;
        text-align: left;
    }
    
    .publication-actions {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        margin-top: 1rem;
    }
    
    .publication-btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }
    
    .publication-btn.publish {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        text-align: center;
        display: block;
        box-sizing: border-box;
    }
    
    .publish-btn-container {
        width: 100%;
        display: block !important;
    }
    
    .publication-badge {
        position: static;
        margin: 0.5rem 0 0 0;
        align-self: center;
        display: inline-block;
    }
    
    .add-publication-container {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .add-publication-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0 0.5rem;
    }
    
    .pagination button, 
    .pagination span {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        min-width: 40px;
        text-align: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .main-container {
        padding: 0.5rem;
    }
    
    .publications-title {
        font-size: 1.3rem;
        padding: 0 0.25rem;
    }
    
    .publications-list {
        padding: 0 0.25rem;
        gap: 1rem;
    }
    
    .publication-card {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .publication-image {
        max-width: 150px;
        height: 100px;
    }
    
    .publication-title {
        font-size: 0.95rem;
    }
    
    .publication-description {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .publication-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .publication-btn.publish {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .publish-btn-container {
        width: 100%;
        display: block !important;
    }
    
    .add-publication-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .pagination button, 
    .pagination span {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 35px;
    }
}

/* Continue with existing mobile header styles from the main @media (max-width: 900px) query */
@media (max-width: 900px) {
    /* Mobile nav should be hidden by default, only shown when active */
    
    /* Adjust header layout for mobile */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        gap: 1rem;
    }
    
    .mobile-back-btn {
        display: flex; /* Show back button on mobile */
        order: 1; /* Put back button on the left */
    }
    
    .mobile-menu-toggle {
        order: 4; /* Put hamburger on the right */
        display: flex !important; /* Force display on mobile */
        z-index: 1001;
    }
    
    .search-container {
        order: 2; /* Put search in the middle */
        flex: 1;
        margin: 0 0.5rem;
        max-width: none;
        min-width: 0; /* Allow shrinking */
        padding: 0.3rem;
        background: white;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 600px) {
  .search-container {
    position: relative;
    display: block;
    padding: 0.1rem;
    max-width: 100vw;
  }
  .search-input {
    width: 100%;
    padding: 0.4rem 2.2rem 0.4rem 0.7rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .search-btn {
    position: absolute;
    right: 0.3em;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    border: none;
    padding: 0;
    z-index: 2;
    border-radius: 50%;
    transition: background 0.2s;
  }
  .search-btn i {
    color: #fff;
  }
  .search-btn:active, .search-btn:focus {
    background: #e55a2b;
  }
} 