/* ============================================
   GUTENBERG FRONTEND STYLES
   Webstudio Albania - Dionn Design System
   ============================================ */

/* ============================================
   CUSTOM BLOCK STYLES (FRONTEND)
   ============================================ */

/* Dionn Primary Button */
.wp-block-button.is-style-dionn-primary .wp-block-button__link {
    background: #5D5CDE;
    color: #fff;
    border-radius: 6px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button.is-style-dionn-primary .wp-block-button__link:hover {
    background: #4a49c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(93, 92, 222, 0.3);
}

/* Dionn Outline Button */
.wp-block-button.is-style-dionn-outline .wp-block-button__link {
    background: transparent;
    color: #5D5CDE;
    border: 2px solid #5D5CDE;
    border-radius: 6px;
    padding: 10px 23px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button.is-style-dionn-outline .wp-block-button__link:hover {
    background: #5D5CDE;
    color: #fff;
}

/* Dionn Card Group */
.wp-block-group.is-style-dionn-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wp-block-group.is-style-dionn-card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Dionn Shadow Group */
.wp-block-group.is-style-dionn-shadow {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
}

/* Dionn Hero Cover */
.wp-block-cover.is-style-dionn-hero {
    min-height: 500px;
}

/* Dionn Cards Layout */
.wp-block-columns.is-style-dionn-cards > .wp-block-column {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wp-block-columns.is-style-dionn-cards > .wp-block-column:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* ============================================
   GUTENBERG COLOR CLASSES
   ============================================ */

.has-dionn-primary-color { color: #5D5CDE !important; }
.has-dionn-primary-background-color { background-color: #5D5CDE !important; }

.has-dionn-text-color { color: #222 !important; }
.has-dionn-text-background-color { background-color: #222 !important; }

.has-dionn-bg-color { color: #f8fafc !important; }
.has-dionn-bg-background-color { background-color: #f8fafc !important; }

.has-dionn-white-color { color: #fff !important; }
.has-dionn-white-background-color { background-color: #fff !important; }

.has-dionn-dark-color { color: #232323 !important; }
.has-dionn-dark-background-color { background-color: #232323 !important; }

/* Border Colors */
.has-dionn-primary-border-color { border-color: #5D5CDE !important; }
.has-dionn-bg-border-color { border-color: #f8fafc !important; }

/* Gradient */
.has-primary-gradient-gradient-background {
    background: linear-gradient(135deg, #5D5CDE 0%, #7B7AE8 100%) !important;
}

/* ============================================
   FONT SIZE CLASSES
   ============================================ */

.has-small-font-size { font-size: 0.875rem !important; }
.has-medium-font-size { font-size: 1rem !important; }
.has-large-font-size { font-size: 1.25rem !important; }
.has-x-large-font-size { font-size: 2rem !important; }
.has-xx-large-font-size { font-size: 3rem !important; }
.has-hero-font-size { font-size: 4rem !important; }

/* ============================================
   ALIGNMENTS (FULL WIDTH SUPPORT)
   ============================================ */

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix për faqe pa container */
body:not(.page-template) .entry-content > .alignfull,
.wsa-gutenberg-wrapper > .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ============================================
   GUTENBERG BLOCK ENHANCEMENTS
   ============================================ */

/* Cover Block */
.wp-block-cover {
    overflow: hidden;
}

.wp-block-cover__inner-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Columns Block */
.wp-block-columns {
    gap: 30px;
}

/* Image Block */
.wp-block-image img {
    border-radius: 8px;
}

.wp-block-image.is-style-rounded img {
    border-radius: 50%;
}

/* Quote Block */
.wp-block-quote {
    border-left: 4px solid #5D5CDE;
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
}

/* Separator Block */
.wp-block-separator {
    border-color: #e0e0e0;
}

.wp-block-separator.has-dionn-primary-background-color {
    border-color: #5D5CDE;
}

/* List Block */
.wp-block-list {
    padding-left: 20px;
}

.wp-block-list li {
    margin-bottom: 8px;
}

/* Table Block */
.wp-block-table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
}

.wp-block-table th {
    background: #f8fafc;
    font-weight: 600;
}

/* Social Links Block */
.wp-block-social-links {
    gap: 15px;
}

.wp-block-social-link {
    transition: transform 0.2s ease;
}

.wp-block-social-link:hover {
    transform: scale(1.1);
}

/* ============================================
   HTML BLOCK SPECIAL STYLES
   (Si Elementor HTML Widget)
   ============================================ */

.wp-block-html {
    margin: 0;
}

/* Form styles brenda HTML block */
.wp-block-html form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wp-block-html input[type="text"],
.wp-block-html input[type="email"],
.wp-block-html input[type="tel"],
.wp-block-html textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.wp-block-html input:focus,
.wp-block-html textarea:focus {
    border-color: #5D5CDE;
    outline: none;
}

.wp-block-html button[type="submit"] {
    background: #5D5CDE;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wp-block-html button[type="submit"]:hover {
    background: #4a49c7;
}

/* ============================================
   REUSABLE HEADER/FOOTER BLOCKS
   ============================================ */

.wsa-gutenberg-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wsa-gutenberg-footer {
    margin-top: auto;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .alignfull {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
    }
}

@media (max-width: 768px) {
    .has-hero-font-size { font-size: 2.5rem !important; }
    .has-xx-large-font-size { font-size: 2rem !important; }
    .has-x-large-font-size { font-size: 1.5rem !important; }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 20px;
    }
    
    .wp-block-cover {
        min-height: 400px !important;
    }
    
    .wp-block-group.is-style-dionn-card,
    .wp-block-columns.is-style-dionn-cards > .wp-block-column {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .has-hero-font-size { font-size: 2rem !important; }
    .has-xx-large-font-size { font-size: 1.75rem !important; }
    
    .wp-block-buttons {
        flex-direction: column;
    }
    
    .wp-block-button {
        width: 100%;
    }
}

/* ============================================
   ANIMATION HELPERS
   ============================================ */

.wsa-fade-in {
    animation: wsaFadeIn 0.6s ease-out;
}

@keyframes wsaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .has-dionn-primary-background-color,
    .has-dionn-dark-background-color {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    .wp-block-cover {
        min-height: auto !important;
        padding: 20px !important;
    }
}
