﻿/* Основни стилове - IDENTIЧНИ с home страницата */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --primary: #0d9488;
    --secondary: #0f766e;
    --accent: #14b8a6;
    --light: #ffffff;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER - ИДЕНТИЧЕН с home страницата */
header {
    background: var(--light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

    .nav-links a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        transition: var(--transition);
    }

        .nav-links a:hover {
            color: var(--primary);
        }


/* Main Content */
.main-content {
    padding: 40px 0;
    flex: 1;
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

    .page-header h1 {
        font-size: 36px;
        margin-bottom: 15px;
        color: var(--dark);
    }

    .page-header p {
        color: var(--gray);
        max-width: 600px;
        margin: 0 auto;
        font-size: 1.1rem;
    }

/* Status Bar */
.status-bar {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status-draft {
    background: #fef3c7;
    color: #d97706;
}

.status-review {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-published {
    background: #d1fae5;
    color: #10b981;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 25%;
    transition: width 0.5s ease;
}

/* Site Builder */
.site-builder {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 600px;
    max-height: 800px;
}

/* Sidebar */
.builder-sidebar {
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-content {
    flex: 1;
    padding: 30px 0;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 30px;
    padding: 0 25px;
}

    .sidebar-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
        color: var(--gray);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    width: 100%;
}

    .sidebar-item:hover {
        background: var(--light-gray);
    }

    .sidebar-item.active {
        background: #f0fdfa;
        color: var(--primary);
        border-left-color: var(--primary);
    }

    .sidebar-item i {
        width: 20px;
        text-align: center;
    }

/* Preview Area */
.builder-preview {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 15px;
    flex-shrink: 0;
}

.preview-tab {
    padding: 8px 20px;
    background: var(--light-gray);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--gray);
}

    .preview-tab.active {
        background: var(--primary);
        color: white;
    }

.preview-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Form Sections */
.form-section {
    display: none;
}

    .form-section.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .section-title i {
        color: var(--primary);
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
        color: var(--dark);
    }

    .form-group .required::after {
        content: " *";
        color: #ef4444;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--light-gray);
        border-radius: 6px;
        font-size: 1rem;
        transition: var(--transition);
        background: white;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
        }

    .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

    .file-upload:hover {
        border-color: var(--primary);
        background: #f0fdfa;
        color: var(--primary);
    }

    .file-upload i {
        font-size: 48px;
        margin-bottom: 15px;
    }

.uploaded-files {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

    .file-item:hover {
        border-color: var(--primary);
    }

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Services */
.service-item {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: var(--transition);
}

    .service-item:hover {
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
    }

.add-service {
    text-align: center;
    padding: 25px;
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

    .add-service:hover {
        border-color: var(--primary);
        background: #f0fdfa;
        color: var(--primary);
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    justify-content: center;
}

    .btn:hover {
        background: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(13, 148, 136, 0.2);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-secondary:hover {
        background: #f0fdfa;
    }

.btn-success {
    background: #10b981;
}

    .btn-success:hover {
        background: #059669;
    }

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid var(--light-gray);
    justify-content: space-between;
}

/* Preview View */
.preview-view {
    display: none;
}

    .preview-view.active {
        display: block;
    }

.website-preview {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.preview-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 40px;
    text-align: center;
}

.preview-logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.preview-content {
    padding: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

/* Instructions */
.instructions {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f0fdfa, #f8fafc);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

    .instructions h3 {
        color: var(--dark);
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .instructions ul {
        list-style: none;
        padding-left: 0;
    }

    .instructions li {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--gray);
    }

        .instructions li i {
            color: var(--accent);
        }

/* FOOTER - ИДЕНТИЧЕН с home страницата */
footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 50px;
        height: 3px;
        background: var(--accent);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #94a3b8;
        text-decoration: none;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .footer-links a:hover {
            color: var(--accent);
            transform: translateX(5px);
        }

    .footer-links i {
        width: 20px;
    }

.contact-info {
    margin-top: 10px;
}

    .contact-info p {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 50%;
        text-decoration: none;
        transition: var(--transition);
    }

        .social-icons a:hover {
            background: var(--accent);
            transform: translateY(-3px);
        }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

    .footer-bottom a {
        color: var(--accent);
        text-decoration: none;
    }

        .footer-bottom a:hover {
            text-decoration: underline;
        }

/* Responsive - ИДЕНТИЧЕН с home страницата */
@media (max-width: 900px) {
    .site-builder {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-header h1 {
        font-size: 30px;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .site-builder {
        flex-direction: column;
        max-height: none;
    }

    .builder-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
        max-height: 300px;
    }

    .sidebar-content {
        overflow-y: auto;
    }

    .builder-preview {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .status-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .status-info {
        width: 100%;
        justify-content: space-between;
    }

    .preview-tabs {
        flex-wrap: wrap;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 26px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .service-item, .feature {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .builder-preview {
        padding: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-section {
        padding: 0 15px;
    }
}

/* Стилове за scrollbar (по избор) */
.builder-sidebar::-webkit-scrollbar,
.preview-container::-webkit-scrollbar {
    width: 8px;
}

.builder-sidebar::-webkit-scrollbar-track,
.preview-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.builder-sidebar::-webkit-scrollbar-thumb,
.preview-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

    .builder-sidebar::-webkit-scrollbar-thumb:hover,
    .preview-container::-webkit-scrollbar-thumb:hover {
        background: var(--secondary);
    }
