/* Brands and Products specific styles */

.brand-detail {
    max-width: 800px;
    margin: 0 auto;
}

.brand-content {
    margin-bottom: 3rem;
}

.brand-content h1,
.brand-content h2,
.brand-content h3,
.brand-content h4,
.brand-content h5,
.brand-content h6 {
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.brand-content h1:first-child,
.brand-content h2:first-child,
.brand-content h3:first-child {
    margin-top: 0;
}

.brand-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.brand-content ul,
.brand-content ol {
    color: #4b5563;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.brand-content li {
    margin-bottom: 0.5rem;
}

.brand-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.brand-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.brand-content a:hover {
    color: #5a67d8;
    border-bottom-color: #5a67d8;
}

/* Style file attachment links */
.brand-content a[href*="/uploads/"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    color: #0369a1;
    text-decoration: none;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
}

.brand-content a[href*="/uploads/"]:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0c4a6e;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

/* File Attachments Styling */
.brand-attachments {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.brand-attachments h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.attachment-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
    transform: translateY(-1px);
}

.attachment-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
    gap: 0.75rem;
}

.attachment-icon {
    font-size: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 6px;
    flex-shrink: 0;
}

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

.attachment-name {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.125rem;
    word-break: break-word;
    font-size: 0.875rem;
}

.attachment-size {
    font-size: 0.75rem;
    color: #6b7280;
}

.download-icon {
    font-size: 1rem;
    color: #3b82f6;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.attachment-item:hover .download-icon {
    opacity: 1;
    transform: scale(1.1);
}

.brand-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.brand-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.brand-content th,
.brand-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.brand-content th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .brand-detail {
        padding: 0 1rem;
    }

    .brand-content {
        margin-bottom: 2rem;
    }
}
