/* ==========================================================================
   Architects & Designers Hub - Frontend CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Registration Form (Split Layout)
   -------------------------------------------------------------------------- */
.architect-registration-wrapper {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    overflow: hidden;
    direction: rtl;
}

.architect-reg-columns {
    display: flex;
    flex-wrap: wrap;
}

.architect-col-social,
.architect-col-form {
    flex: 1;
    padding: 40px;
    min-width: 300px;
}

.architect-col-social {
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.architect-col-social h4,
.architect-col-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #333;
}

.architect-col-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    position: relative;
    width: 0;
}

.architect-col-divider span {
    background: #fff;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid #eee;
    font-weight: bold;
    color: #888;
    z-index: 2;
    position: absolute;
    right: -22px;
}

/* Social Login Buttons */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    margin-bottom: 12px;
    transition: opacity 0.3s;
}
.social-btn:hover { opacity: 0.9; }
.social-btn.google { background: #DB4437; }
.social-btn.facebook { background: #1877F2; }
.social-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Form Fields */
.architect-auth-form .form-row {
    margin-bottom: 15px;
}

.architect-auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.architect-auth-form input[type="text"],
.architect-auth-form input[type="email"],
.architect-auth-form input[type="password"],
.architect-auth-form select,
.architect-auth-form textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.architect-auth-form input:focus,
.architect-auth-form select:focus,
.architect-auth-form textarea:focus {
    border-color: #1877f2;
    outline: none;
}

.architect-auth-form button[type="submit"] {
    width: 100%;
    height: 45px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.architect-auth-form button[type="submit"]:hover {
    background: #0f5dc1;
    transform: translateY(-2px);
}

/* Registration messages */
.arch-msg {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}
.arch-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.arch-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .architect-col-divider {
        width: 100%;
        height: 1px;
        background: #eee;
        margin: 20px 0;
    }
    .architect-col-divider span {
        right: auto;
        top: -22px;
    }
    .architect-col-social,
    .architect-col-form {
        min-width: auto;
    }
}


/* --------------------------------------------------------------------------
   2. Archive Grid & Filter Buttons
   -------------------------------------------------------------------------- */
.arch-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    direction: rtl;
}

.arch-main-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #222;
}

/* Categories Filter Bar */
.arch-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.arch-categories-bar .cat-btn {
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.arch-categories-bar .cat-btn:hover,
.arch-categories-bar .cat-btn.active {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Grid Layout */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Architect Card Item */
.arch-card-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    text-decoration: none;
    display: block;
    color: inherit;
}

.arch-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.arch-avatar-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.arch-card-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #333;
}

.arch-card-item .arch-prof {
    font-size: 14px;
    font-weight: bold;
}

/* No results */
.arch-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}


/* --------------------------------------------------------------------------
   3. Digital Business Card
   -------------------------------------------------------------------------- */
.card-page-container {
    max-width: 450px;
    margin: 40px auto;
    direction: rtl;
    padding: 0 15px;
}

.digital-card {
    background-color: #f0e6dd;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 5px solid #333;
    position: relative;
    overflow: hidden;
}

.digital-card .card-profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    background: #fff;
    border: 4px solid #333;
}

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

.digital-card h1.card-name {
    margin: 0 0 5px;
    font-size: 28px;
    color: #222;
}

.digital-card h2.card-profession {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: bold;
}

.digital-card .card-business-name {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
}

.digital-card .card-about {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

/* Contact Details */
.digital-card .card-contact-details {
    margin-bottom: 30px;
    background: rgba(255,255,255,0.6);
    padding: 15px;
    border-radius: 12px;
}

.digital-card .detail-row {
    margin-bottom: 10px;
    font-size: 16px;
}

.digital-card .detail-row:last-child {
    margin-bottom: 0;
}

.digital-card .detail-row a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    margin-right: 8px;
}

.digital-card .detail-row a:hover {
    text-decoration: underline;
}

/* Social Icons */
.digital-card .card-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.digital-card .soc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.digital-card .soc-icon:hover {
    transform: scale(1.1);
}

.digital-card .soc-icon.facebook { background: #1877F2; }
.digital-card .soc-icon.instagram { background: #E4405F; }
.digital-card .soc-icon.tiktok { background: #000000; }
.digital-card .soc-icon.whatsapp { background: #25D366; }
.digital-card .soc-icon.linkedin { background: #0A66C2; }
.digital-card .soc-icon.pinterest { background: #E60023; }
.digital-card .soc-icon.email-icon { background: #888888; }
.digital-card .soc-icon.website-icon { background: #333333; }

/* Share Button */
.digital-card .share-btn-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.digital-card .share-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #222;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.digital-card .share-card-btn:hover {
    background: #000;
}

.card-logo-bottom {
    margin-top: 25px;
}

.card-logo-bottom img {
    max-height: 60px;
    max-width: 100%;
}


/* --------------------------------------------------------------------------
   4. Editor Dashboard (My Account)
   -------------------------------------------------------------------------- */
#architect-editor-wrap {
    direction: rtl;
}

.editor-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.editor-header-bar h2 {
    margin: 0 0 5px;
    font-size: 24px;
}

.editor-header-bar p {
    margin: 0;
    color: #666;
}

.architect-editor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: start;
}

.architect-card-box {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.architect-card-box .box-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field-wrap {
    margin-bottom: 15px;
}

.field-wrap label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
}

.field-wrap input[type="text"],
.field-wrap input[type="email"],
.field-wrap input[type="url"],
.field-wrap select,
.field-wrap textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.field-wrap textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

/* Privacy Toggle */
.privacy-toggle-wrap {
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-right: 4px solid #1877f2;
}

.privacy-toggle-wrap label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.privacy-toggle-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Image Upload Preview */
.profile-preview-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px dashed #ddd;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-preview-wrapper .placeholder-text {
    color: #bbb;
    font-size: 12px;
}

.logo-preview-box {
    min-height: 60px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 10px;
}

.logo-preview-box img {
    max-height: 50px;
}

.logo-preview-box .placeholder-text {
    color: #bbb;
    font-size: 12px;
}

/* Buttons inside editor */
.upload-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.architect-upload-btn,
.clear-img-btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #f9f9f9;
    transition: background 0.2s;
}

.architect-upload-btn:hover {
    background: #e5e5e5;
}

.clear-img-btn {
    color: #d63638;
    border-color: #d63638;
}
.clear-img-btn:hover {
    background: #d63638;
    color: #fff;
}

/* Save button */
.save-card-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.save-card-btn:hover {
    background: #0f5dc1;
}

/* Word Counter */
.word-counter {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}
.word-counter.limit-reached {
    color: red;
}

/* Color picker in editor */
.color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-wrap input[type="color"] {
    width: 100%;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
}

/* Status messages */
.editor-status-msg {
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
}
.editor-status-msg.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.editor-status-msg.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .architect-editor-layout {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .editor-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --------------------------------------------------------------------------
   5. Popup overlay
   -------------------------------------------------------------------------- */
.arch-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.arch-popup {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    direction: rtl;
}

.arch-popup h3 {
    margin: 0 0 15px;
    font-size: 22px;
}

.arch-popup p {
    color: #555;
    line-height: 1.6;
}

.arch-popup .close-popup {
    margin-top: 20px;
    padding: 10px 30px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}
