/* 
 * Minimalist, Premium Styles for Logo Analyzer 
 * Inherits base fonts/colors from Elementor where possible
 */

:root {
    --la-primary: #ffffff;
    --la-secondary: rgba(255, 255, 255, 0.7);
    --la-accent: var(--e-global-color-accent, #ffffff);
    --la-bg: transparent;
    --la-border: #FFFFFF;
    --la-text: #ffffff;
    --la-error: #ffcccc;
    --la-radius: 12px;
    --la-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --la-font: var(--e-global-typography-primary-font-family, inherit);
}

.logo-analyzer-container {
    font-family: var(--la-font);
    max-width: 800px;
    margin: 0 auto;
    background: var(--la-bg);
    border-radius: var(--la-radius);
    box-shadow: none;
    padding: 2.5rem;
    color: var(--la-text);
    box-sizing: border-box;
}

.logo-analyzer-container * {
    box-sizing: border-box;
}

.la-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--la-primary);
    text-align: center;
}

.la-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--la-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Form Styles */
.la-dropzone {
    border: 2px dashed var(--la-border);
    border-radius: var(--la-radius);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--la-transition);
    background: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.la-dropzone:hover,
.la-dropzone.dragover {
    border-color: var(--la-primary);
    background: rgba(255, 255, 255, 0.1);
}

.la-icon-upload {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.la-dropzone p {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.la-dropzone small {
    color: #888;
}

#la-image-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.la-input-group {
    margin-bottom: 1.5rem;
    border-radius: 1em;
}

.la-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--la-primary);
}

.la-input-group input,
.la-input-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--la-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--la-transition);
    background: transparent;
    color: #ffffff;
}

.la-input-group input::placeholder,
.la-input-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.la-input-group input:focus,
.la-input-group textarea:focus {
    outline: none;
    border-color: var(--la-primary);
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.05);
}

/* Buttons */
.la-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 1.25rem;
    background: var(--la-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--la-transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.la-btn-primary:hover {
    background: #2a2a2a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.la-btn-primary:active {
    transform: translateY(-1px);
}

.la-btn-primary:disabled {
    background: #333;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.la-btn-primary:active {
    transform: translateY(0);
}

.la-btn-primary:disabled {
    cursor: not-allowed;
    border-color: rgb(255, 166, 23);
    color: rgb(255, 166, 23);
    background: rgba(255, 166, 23, 0.08);
    animation: la-btn-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 166, 23, 0.15);
}

.la-btn-primary:disabled:hover {
    transform: none;
}

@keyframes la-btn-pulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 166, 23, 0.15);
    }

    50% {
        box-shadow: 0 0 25px rgba(255, 166, 23, 0.35);
    }
}

.la-btn-secondary {
    background: transparent;
    border: none;
    color: var(--la-secondary);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: var(--la-transition);
    font-size: 1rem;
}

.la-btn-secondary:hover {
    color: var(--la-primary);
}

/* Expand Button */
.la-expand-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--la-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    transition: var(--la-transition);
}

.la-expand-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--la-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.la-expand-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.la-expand-btn.active .la-expand-icon {
    transform: rotate(180deg);
}

/* Loader */
.la-loader {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.la-loader::before,
.la-loader::after,
.la-loader {
    content: '';
}

.la-loader span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(255, 166, 23);
    display: inline-block;
    animation: la-dot-bounce 1.4s ease-in-out infinite both;
}

.la-loader span:nth-child(1) {
    animation-delay: -0.32s;
}

.la-loader span:nth-child(2) {
    animation-delay: -0.16s;
}

.la-loader span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes la-dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.4);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.la-error {
    color: #ffcccc;
    background: rgba(220, 53, 69, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid var(--la-error);
    font-size: 0.95rem;
}

/* Results */
.la-results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.la-results-header h2 {
    font-size: 2rem;
    color: var(--la-primary);
    margin-bottom: 1.5rem;
}

.la-results-header img {
    max-height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.la-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.la-metric-card {
    background: #FFFFFF11;
    border-radius: var(--la-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--la-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.la-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.la-metric-card h3 {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--la-primary);
}

.la-feedback {
    font-size: 0.95rem;
    color: var(--la-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

/* SVG Circular Charts */
.la-chart {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out, stroke 0.5s ease;
}

.percentage {
    fill: var(--la-primary);
    font-family: inherit;
    font-size: 8px;
    font-weight: bold;
    text-anchor: middle;
}

/* Colors for scores */
.score-low .circle {
    stroke: #ff4d4f;
}

.score-mid .circle {
    stroke: #faad14;
}

.score-high .circle {
    stroke: #52c41a;
}

/* Overall Score Section */
.la-overall-score-wrapper {
    margin: 3rem 0;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--la-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: fadeInScale 0.8s ease-out both;
}

.la-overall-score-circle {
    min-width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 9px solid var(--la-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 40px rgba(255, 166, 23, 0.1);
}

.la-overall-score-circle span {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.la-overall-score-circle small {
    font-size: 1rem;
    color: var(--la-text-dim);
}

.la-overall-recommendation {
    text-align: left;
}

.la-overall-recommendation h4 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 800;
}

.la-overall-recommendation p {
    font-size: 1.15rem;
    color: var(--la-text-dim);
    margin: 0;
    line-height: 1.5;
}

/* Color states for overall score */
.la-overall-score-wrapper.score-high .la-overall-score-circle {
    border-color: #52c41a;
    box-shadow: 0 0 40px rgba(82, 196, 26, 0.2);
}

.la-overall-score-wrapper.score-high h4 {
    color: #52c41a;
}

.la-overall-score-wrapper.score-mid .la-overall-score-circle {
    border-color: #faad14;
    box-shadow: 0 0 40px rgba(250, 173, 20, 0.2);
}

.la-overall-score-wrapper.score-mid h4 {
    color: #faad14;
}

.la-overall-score-wrapper.score-low .la-overall-score-circle {
    border-color: #ff4d4f;
    box-shadow: 0 0 40px rgba(255, 77, 79, 0.2);
}

.la-overall-score-wrapper.score-low h4 {
    color: #ff4d4f;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* WhatsApp CTA */
.la-whatsapp-cta {
    text-align: center;
    margin-top: 1rem;
    padding: 2.5rem;
    border: 1px solid var(--la-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.la-whatsapp-cta p {
    color: var(--la-text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.la-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: #fff;
    width: 100%;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--la-transition);
}

.la-btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .la-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .logo-analyzer-container {
        padding: 1.5rem;
    }

    .la-metrics-grid {
        grid-template-columns: 1fr;
    }

    .la-overall-score-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    .la-overall-recommendation {
        text-align: center;
    }

    .la-overall-recommendation h4 {
        font-size: 1.8rem;
    }
}