/* ProScape AI - Design Gallery View Styles */
/* Mobile-first responsive design following brand guidelines */

/* Hero Section: Full-width Image Display */
.design-hero {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    padding: 2rem 0;
}

.hero-image-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.design-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: white;
}

/* Main Content Section */
.design-content {
    padding: 3rem 0 5rem;
    background: white;
}

/* Metadata Card */
.design-metadata-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.design-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.design-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.meta-item i {
    color: #28a745;
    font-size: 0.9rem;
}

/* Description Section */
.design-description {
    margin-top: 1.5rem;
}

.description-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.description-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-text.expanded {
    max-height: none;
}

.description-text p {
    margin: 0;
}

.btn-read-more {
    background: transparent;
    border: none;
    color: #28a745;
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-read-more:hover {
    color: #20c997;
}

.btn-read-more i {
    transition: transform 0.2s ease;
}

.btn-read-more.expanded i {
    transform: rotate(180deg);
}

/* Section Heading (Design Assistant metadata) */
.section-heading {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.metadata-content {
    color: #495057;
    font-size: 1rem;
    line-height: 1.6;
}

.metadata-content p {
    margin: 0;
}

/* Owner Actions Card */
.owner-actions-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
}

.actions-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-action {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

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

.btn-action.btn-primary {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-action.btn-primary:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-action.btn-outline {
    background: white;
    color: #495057;
    border: 1px solid #e2e8f0;
}

.btn-action.btn-outline:hover {
    background: #f8f9fa;
    border-color: #28a745;
    color: #28a745;
}

.btn-action.btn-danger {
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-action.btn-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Public CTA Card */
.public-cta-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 90px;
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cta-icon i {
    font-size: 2rem;
    color: white;
}

.cta-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-cta-primary {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    min-height: 44px;
}

.btn-cta-primary:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
    text-decoration: none;
}

.cta-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Modal Customization */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* Responsive Design: Tablet (768px - 1024px) */
@media (min-width: 768px) {
    .design-hero {
        padding: 3rem 0;
    }

    .hero-image-wrapper {
        padding: 0 2rem;
    }

    .design-title {
        font-size: 3rem;
    }

    .description-text {
        max-height: 120px;
    }
}

/* Responsive Design: Desktop (> 1024px) */
@media (min-width: 1024px) {
    .design-content {
        padding: 4rem 0 6rem;
    }

    .design-metadata-card {
        padding: 2.5rem;
    }
}

/* Responsive Design: Mobile (<768px) */
@media (max-width: 767px) {
    .design-hero {
        padding: 1rem 0;
    }

    .hero-image-wrapper {
        padding: 0 0.5rem;
    }

    .design-image {
        border-radius: 12px;
        max-height: 60vh;
    }

    .design-content {
        padding: 2rem 0 3rem;
    }

    .design-metadata-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .design-title {
        font-size: 1.75rem;
    }

    .design-meta-info {
        gap: 1rem;
    }

    .description-heading {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .owner-actions-card,
    .public-cta-card {
        position: static;
        margin-top: 2rem;
    }

    .owner-actions-card {
        padding: 1.25rem;
    }

    .public-cta-card {
        padding: 1.5rem;
    }

    .actions-heading,
    .cta-heading {
        font-size: 1.15rem;
    }

    .btn-action,
    .btn-cta-primary {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* Accessibility: Focus States */
.btn-action:focus,
.btn-cta-primary:focus,
.btn-read-more:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .btn-action,
    .btn-cta-primary,
    .btn-read-more,
    .description-text,
    .btn-read-more i {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .owner-actions-card,
    .public-cta-card,
    .btn-read-more {
        display: none;
    }

    .design-image {
        max-height: none;
        page-break-inside: avoid;
    }

    .description-text {
        max-height: none;
    }
}

/* ========================================
   Toastr Notification Overrides
   ======================================== */

/* Fix white text on light background issue */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#toast-container .toast-success {
    background-color: #28a745;
    color: white;
}

#toast-container .toast-error {
    background-color: #dc3545;
    color: white;
}

#toast-container .toast-info {
    background-color: #17a2b8;
    color: white;
}

#toast-container .toast-warning {
    background-color: #ffc107;
    color: #212529;
}

#toast-container .toast-title {
    font-weight: 700;
    color: inherit;
}

#toast-container .toast-message {
    color: inherit;
}
