/**
 * Architect Marketplace - Main Stylesheet
 *
 * @package Architect_Marketplace
 * @version 1.0.0
 */

/* ====================
   VARIABLES & COLORS
   ==================== */
:root {
    --amp-primary: #2c3e50;
    --amp-secondary: #34495e;
    --amp-accent: #3498db;
    --amp-success: #27ae60;
    --amp-warning: #f39c12;
    --amp-danger: #e74c3c;
    --amp-light: #ecf0f1;
    --amp-dark: #2c3e50;
    --amp-white: #ffffff;
    --amp-gray-100: #f8f9fa;
    --amp-gray-200: #e9ecef;
    --amp-gray-300: #dee2e6;
    --amp-gray-400: #ced4da;
    --amp-gray-500: #adb5bd;
    --amp-gray-600: #6c757d;
    --amp-gray-700: #495057;
    --amp-gray-800: #343a40;
    --amp-gray-900: #212529;

    --amp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --amp-border-radius: 8px;
    --amp-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --amp-box-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --amp-transition: all 0.3s ease;
}

/* ====================
   RESET & BASE
   ==================== */
.architect-marketplace-profile,
.architect-marketplace-projects-list,
.architect-marketplace-project-single,
.architect-marketplace-collaborations,
.architect-marketplace-notifications {
    font-family: var(--amp-font-family);
    line-height: 1.6;
    color: var(--amp-gray-900);
}

.architect-marketplace-profile *,
.architect-marketplace-projects-list *,
.architect-marketplace-project-single *,
.architect-marketplace-collaborations *,
.architect-marketplace-notifications * {
    box-sizing: border-box;
}

/* ====================
   CONTAINER
   ==================== */
.amp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ====================
   TYPOGRAPHY
   ==================== */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px 0;
    font-weight: 600;
    line-height: 1.2;
    color: var(--amp-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 16px 0;
}

a {
    color: var(--amp-accent);
    text-decoration: none;
    transition: var(--amp-transition);
}

a:hover {
    color: var(--amp-primary);
}

/* ====================
   BUTTONS
   ==================== */
.amp-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--amp-border-radius);
    cursor: pointer;
    transition: var(--amp-transition);
    text-decoration: none;
    line-height: 1.5;
}

.amp-button-primary {
    background-color: var(--amp-accent);
    color: var(--amp-white);
}

.amp-button-primary:hover {
    background-color: #2980b9;
    color: var(--amp-white);
}

.amp-button-secondary {
    background-color: var(--amp-gray-500);
    color: var(--amp-white);
}

.amp-button-secondary:hover {
    background-color: var(--amp-gray-600);
    color: var(--amp-white);
}

.amp-button-success {
    background-color: var(--amp-success);
    color: var(--amp-white);
}

.amp-button-success:hover {
    background-color: #229954;
}

.amp-button-danger {
    background-color: var(--amp-danger);
    color: var(--amp-white);
}

.amp-button-danger:hover {
    background-color: #c0392b;
}

.amp-button-edit {
    background-color: var(--amp-gray-200);
    color: var(--amp-dark);
}

.amp-button-edit:hover {
    background-color: var(--amp-gray-300);
}

.amp-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

.amp-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background-color: transparent;
    border: none;
    border-radius: var(--amp-border-radius);
    cursor: pointer;
    transition: var(--amp-transition);
    color: var(--amp-gray-600);
}

.amp-icon-button:hover {
    background-color: var(--amp-gray-200);
    color: var(--amp-primary);
}

/* ====================
   BADGES & TAGS
   ==================== */
.amp-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    background-color: var(--amp-gray-200);
    color: var(--amp-dark);
}

.amp-badge-success {
    background-color: #d5f4e6;
    color: var(--amp-success);
}

.amp-badge-warning {
    background-color: #fef5e7;
    color: var(--amp-warning);
}

.amp-badge-danger {
    background-color: #fadbd8;
    color: var(--amp-danger);
}

.amp-tag {
    display: inline-block;
    padding: 6px 16px;
    margin: 0 8px 8px 0;
    font-size: 14px;
    background-color: var(--amp-light);
    color: var(--amp-dark);
    border-radius: var(--amp-border-radius);
}

.amp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ====================
   CARDS
   ==================== */
.amp-card {
    background: var(--amp-white);
    border-radius: var(--amp-border-radius);
    box-shadow: var(--amp-box-shadow);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--amp-transition);
}

.amp-card:hover {
    box-shadow: var(--amp-box-shadow-lg);
}

/* ====================
   PROFILE
   ==================== */
.amp-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.amp-profile-section {
    background: var(--amp-white);
    border-radius: var(--amp-border-radius);
    box-shadow: var(--amp-box-shadow);
    padding: 30px;
    margin-bottom: 24px;
}

.amp-profile-info {
    display: grid;
    gap: 20px;
}

.amp-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amp-info-item label {
    font-weight: 600;
    color: var(--amp-gray-600);
    font-size: 14px;
}

.amp-info-item span,
.amp-info-item a {
    font-size: 16px;
    color: var(--amp-dark);
}

.amp-profile-bio {
    color: var(--amp-gray-700);
}

.amp-cv-current {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: var(--amp-gray-100);
    border-radius: var(--amp-border-radius);
    margin-bottom: 16px;
}

.amp-cv-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.amp-cv-filename {
    font-weight: 600;
}

.amp-cv-version,
.amp-cv-date {
    font-size: 14px;
    color: var(--amp-gray-600);
}

/* ====================
   PROJECTS
   ==================== */
.amp-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.amp-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.amp-project-card {
    background: var(--amp-white);
    border-radius: var(--amp-border-radius);
    box-shadow: var(--amp-box-shadow);
    overflow: hidden;
    transition: var(--amp-transition);
}

.amp-project-card:hover {
    box-shadow: var(--amp-box-shadow-lg);
    transform: translateY(-4px);
}

.amp-project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--amp-gray-200);
}

.amp-project-title {
    margin: 0;
    font-size: 1.25rem;
}

.amp-project-title a {
    color: var(--amp-dark);
}

.amp-project-title a:hover {
    color: var(--amp-accent);
}

.amp-project-actions {
    display: flex;
    gap: 8px;
}

.amp-project-card-body {
    padding: 20px;
}

.amp-project-category {
    margin-bottom: 12px;
}

.amp-project-description {
    color: var(--amp-gray-700);
    margin: 0 0 12px 0;
}

.amp-project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--amp-gray-600);
    font-size: 14px;
}

.amp-project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--amp-gray-100);
}

.amp-project-date {
    font-size: 14px;
    color: var(--amp-gray-600);
}

/* ====================
   PROJECT SINGLE
   ==================== */
.amp-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--amp-gray-600);
}

.amp-breadcrumb .separator {
    margin: 0 8px;
}

.amp-project-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.amp-project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.amp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--amp-gray-700);
    font-size: 14px;
}

.amp-project-section {
    background: var(--amp-white);
    border-radius: var(--amp-border-radius);
    box-shadow: var(--amp-box-shadow);
    padding: 30px;
    margin-bottom: 24px;
}

.amp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.amp-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.amp-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--amp-gray-100);
    border-radius: var(--amp-border-radius);
    transition: var(--amp-transition);
}

.amp-file-card:hover {
    background-color: var(--amp-gray-200);
}

.amp-file-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--amp-accent);
    color: var(--amp-white);
    border-radius: var(--amp-border-radius);
    font-weight: 600;
    font-size: 12px;
}

.amp-file-info {
    flex: 1;
    min-width: 0;
}

.amp-file-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amp-file-meta {
    margin: 0;
    font-size: 12px;
    color: var(--amp-gray-600);
}

.amp-file-actions {
    display: flex;
    gap: 8px;
}

/* ====================
   COLLABORATORS
   ==================== */
.amp-collaborators-list {
    display: grid;
    gap: 16px;
}

.amp-collaborator-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--amp-gray-100);
    border-radius: var(--amp-border-radius);
}

.amp-collaborator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

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

.amp-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--amp-accent);
    color: var(--amp-white);
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
}

.amp-collaborator-info {
    flex: 1;
}

.amp-collaborator-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.amp-collaborator-info p {
    margin: 0;
    font-size: 14px;
    color: var(--amp-gray-600);
}

.amp-collaborator-status {
    margin: 0 16px;
}

.amp-collaborator-actions {
    display: flex;
    gap: 8px;
}

/* ====================
   COLLABORATIONS
   ==================== */
.amp-collaborations-header {
    margin-bottom: 40px;
}

.amp-collaborations-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--amp-gray-200);
}

.amp-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--amp-transition);
    color: var(--amp-gray-600);
}

.amp-tab-btn:hover {
    color: var(--amp-dark);
    background-color: var(--amp-gray-100);
}

.amp-tab-btn.active {
    color: var(--amp-accent);
    border-bottom-color: var(--amp-accent);
}

.amp-tab-content {
    display: none;
}

.amp-tab-content.active {
    display: block;
}

.amp-collaborations-list {
    display: grid;
    gap: 16px;
}

.amp-collaboration-card {
    background: var(--amp-white);
    border-radius: var(--amp-border-radius);
    box-shadow: var(--amp-box-shadow);
    overflow: hidden;
}

.amp-collaboration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--amp-gray-200);
}

.amp-collaboration-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.amp-collaboration-body {
    padding: 20px;
}

.amp-collaboration-date {
    margin: 0;
    font-size: 14px;
    color: var(--amp-gray-600);
}

.amp-collaboration-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background-color: var(--amp-gray-100);
}

/* ====================
   NOTIFICATIONS
   ==================== */
.amp-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.amp-notifications-list {
    display: grid;
    gap: 12px;
}

.amp-notification-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--amp-white);
    border-radius: var(--amp-border-radius);
    box-shadow: var(--amp-box-shadow);
    transition: var(--amp-transition);
}

.amp-notification-item:hover {
    box-shadow: var(--amp-box-shadow-lg);
}

.amp-notification-unread {
    background-color: #e8f4fd;
    border-left: 4px solid var(--amp-accent);
}

.amp-notification-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--amp-light);
    border-radius: 50%;
    color: var(--amp-accent);
    flex-shrink: 0;
}

.amp-notification-content {
    flex: 1;
}

.amp-notification-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.amp-notification-message {
    margin: 0 0 8px 0;
    color: var(--amp-gray-700);
}

.amp-notification-time {
    font-size: 12px;
    color: var(--amp-gray-500);
}

.amp-notification-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* ====================
   EMPTY STATES
   ==================== */
.amp-empty-state,
.amp-empty-state-small {
    text-align: center;
    padding: 60px 20px;
}

.amp-empty-state-small {
    padding: 40px 20px;
}

.amp-empty-icon {
    margin: 0 auto 24px auto;
    color: var(--amp-gray-400);
}

.amp-empty-state h2 {
    margin-bottom: 12px;
    color: var(--amp-gray-700);
}

.amp-empty-state p {
    color: var(--amp-gray-600);
    max-width: 500px;
    margin: 0 auto 24px auto;
}

/* ====================
   MODALS
   ==================== */
.amp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.amp-modal-content {
    background-color: var(--amp-white);
    margin: 5% auto;
    padding: 40px;
    border-radius: var(--amp-border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--amp-box-shadow-lg);
}

.amp-modal-large {
    max-width: 800px;
}

.amp-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--amp-gray-500);
    cursor: pointer;
    transition: var(--amp-transition);
}

.amp-modal-close:hover,
.amp-modal-close:focus {
    color: var(--amp-dark);
}

/* ====================
   FORMS
   ==================== */
.amp-form-group {
    margin-bottom: 24px;
}

.amp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--amp-dark);
}

.amp-form-group input[type="text"],
.amp-form-group input[type="email"],
.amp-form-group input[type="url"],
.amp-form-group input[type="number"],
.amp-form-group input[type="date"],
.amp-form-group textarea,
.amp-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--amp-gray-300);
    border-radius: var(--amp-border-radius);
    font-size: 16px;
    transition: var(--amp-transition);
    font-family: var(--amp-font-family);
}

.amp-form-group input:focus,
.amp-form-group textarea:focus,
.amp-form-group select:focus {
    outline: none;
    border-color: var(--amp-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.amp-form-group textarea {
    resize: vertical;
}

.amp-form-help {
    margin-top: 8px;
    font-size: 14px;
    color: var(--amp-gray-600);
}

.amp-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.amp-col-6 {
    flex: 1;
}

.amp-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* ====================
   MAP
   ==================== */
.amp-map {
    width: 100%;
    height: 400px;
    border-radius: var(--amp-border-radius);
    overflow: hidden;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 768px) {
    .amp-container {
        padding: 20px 16px;
    }

    .amp-profile-header,
    .amp-projects-header,
    .amp-notifications-header,
    .amp-project-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .amp-projects-grid {
        grid-template-columns: 1fr;
    }

    .amp-files-grid {
        grid-template-columns: 1fr;
    }

    .amp-form-row {
        flex-direction: column;
    }

    .amp-modal-content {
        margin: 10% 16px;
        width: calc(100% - 32px);
    }

    .amp-notification-item {
        flex-direction: column;
    }

    .amp-collaborator-item {
        flex-wrap: wrap;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}
