/* ==========================================
   MINIMALIST MODERN DESIGN SYSTEM
   Uninstall Feedback Page - Bold Redesign
   ========================================== */

/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
    /* Colors */
    --background: #FAFAFA;
    --foreground: #0F172A;
    --muted: #F1F5F9;
    --muted-foreground: #64748B;
    --accent: #0052FF;
    --accent-secondary: #4D7CFF;
    --accent-foreground: #FFFFFF;
    --border: #E2E8F0;
    --card: #FFFFFF;
    --success: #10B981;
    --error: #EF4444;

    /* Typography */
    --font-display: "Calistoga", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    /* Spacing */
    --container-padding: 2rem;

    /* Effects */
    --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(135deg, #0052FF 0%, #4D7CFF 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 8px 24px rgba(0, 82, 255, 0.35);

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ==========================================
   BACKGROUND DECORATIONS
   ========================================== */
.bg-decoration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
}

.glow-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation: float-glow-1 25s ease-in-out infinite;
}

.glow-2 {
    bottom: -15%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation: float-glow-2 30s ease-in-out infinite;
}

@keyframes float-glow-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

@keyframes float-glow-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -40px) scale(1.15);
    }
}

.dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 82, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ==========================================
   PAGE LAYOUT
   ========================================== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.main-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem var(--container-padding) 2rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .main-container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 5rem;
        align-items: center;
    }
}

/* ==========================================
   LANGUAGE SELECTOR
   ========================================== */
.language-selector {
    position: absolute;
    top: 1.5rem;
    right: var(--container-padding);
    z-index: 100;
}

.language-selector select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.language-selector select:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 82, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.language-selector select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.1);
}

@media (max-width: 639px) {
    .language-selector {
        top: 1rem;
        right: 1.25rem;
    }

    .language-selector select {
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================
   PLUGIN BRANDING
   ========================================== */
.plugin-branding {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.plugin-branding:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(0, 82, 255, 0.3);
}

.plugin-branding:active {
    transform: translateY(0);
}

.plugin-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plugin-logo svg {
    filter: drop-shadow(0 4px 8px rgba(0, 82, 255, 0.2));
}

.plugin-info {
    flex: 1;
    min-width: 0;
}

.plugin-name {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.01em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.external-link-icon {
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.plugin-branding:hover .external-link-icon {
    opacity: 1;
    transform: translateX(2px) translateY(-2px);
}

.plugin-tagline {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    font-weight: 500;
}

@media (max-width: 639px) {
    .plugin-branding {
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }

    .plugin-logo svg {
        width: 40px;
        height: 40px;
    }

    .plugin-name {
        font-size: 1.125rem;
    }

    .plugin-tagline {
        font-size: 0.8125rem;
    }
}


/* ==========================================
   HERO SECTION (LEFT SIDE)
   ========================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.hero-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    background: rgba(0, 82, 255, 0.06);
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 9999px;
    width: fit-content;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7);
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(0, 82, 255, 0);
    }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 500;
}

/* Hero Headline */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--foreground);
    margin: 0;
}

.headline-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.headline-underline {
    width: 180px;
    height: 8px;
    background: linear-gradient(90deg, rgba(0, 82, 255, 0.2) 0%, rgba(77, 124, 255, 0.05) 100%);
    border-radius: 4px;
    margin-top: 1rem;
}

/* Hero Description */
.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    max-width: 540px;
    margin: 0;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.1875rem;
    }
}

.hide-mobile {
    display: none;
}

@media (min-width: 640px) {
    .hide-mobile {
        display: inline;
    }
}

/* Trust Stats */
.trust-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Abstract Graphic */
.abstract-graphic {
    position: relative;
    width: 280px;
    height: 280px;
    margin-top: 2rem;
    display: none;
}

@media (min-width: 1024px) {
    .abstract-graphic {
        display: block;
    }
}

.graphic-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border: 2px dashed rgba(0, 82, 255, 0.2);
    border-radius: 50%;
}

.rotating-slow {
    animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
}

.circle-1 {
    top: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-accent);
}

.circle-2 {
    bottom: 25%;
    right: 20%;
    width: 40px;
    height: 40px;
    background: rgba(0, 82, 255, 0.1);
    border: 2px solid var(--accent);
}

.floating {
    animation: float-up-down 5s ease-in-out infinite;
}

.floating-delayed {
    animation: float-up-down 4s ease-in-out infinite;
    animation-delay: -2s;
}

@keyframes float-up-down {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.graphic-square {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: var(--card);
    border: 2px solid var(--accent);
    border-radius: 8px;
    transform: translateY(-50%) rotate(15deg);
    box-shadow: var(--shadow-lg);
}

.graphic-dots {
    position: absolute;
    bottom: 15%;
    left: 20%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.graphic-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
}

/* ==========================================
   FORM SECTION (RIGHT SIDE)
   ========================================== */
.form-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out) 0.2s;
}

.form-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .form-card {
        padding: 3.5rem 3rem;
    }
}

/* Gradient Border Effect */
.form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-card:hover::before {
    opacity: 0.3;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.form-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce-subtle 3s ease-in-out infinite;
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--foreground);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Form Fields */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s ease;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
}

.label-icon {
    font-size: 1.125rem;
}

.label-optional {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Select Container */
.select-container {
    position: relative;
}

.form-select {
    width: 100%;
    height: 56px;
    padding: 0 3.5rem 0 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--foreground);
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:hover {
    border-color: rgba(0, 82, 255, 0.3);
    background: rgba(0, 82, 255, 0.02);
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
    background: var(--card);
}

.select-arrow {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
    transition: all 0.2s ease;
}

.select-container:hover .select-arrow {
    color: var(--accent);
    transform: translateY(-50%) translateY(2px);
}

/* Textarea */
.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.125rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
}

.form-textarea::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.form-textarea:hover {
    border-color: rgba(0, 82, 255, 0.3);
    background: rgba(0, 82, 255, 0.02);
}

.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
    background: var(--card);
}

.textarea-hint {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.textarea-hint::before {
    content: '🔒';
    font-size: 0.875rem;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--accent-foreground);
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.button-arrow {
    transition: transform 0.3s var(--ease-out);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.submit-button:hover .button-arrow {
    transform: translateX(4px);
}

.submit-button:active {
    transform: translateY(-1px) scale(0.98);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-button.loading .button-arrow {
    animation: pulse-arrow 1s ease-in-out infinite;
}

@keyframes pulse-arrow {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(4px);
    }
}

/* Button Shimmer Effect */
.button-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover .button-shimmer {
    left: 100%;
}

/* ==========================================
   SUCCESS STATE
   ========================================== */
.success-container {
    text-align: center;
    padding: 2rem 0;
}

.success-animation {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.success-checkmark {
    animation: scale-in 0.5s var(--ease-out);
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.check-circle {
    stroke-dasharray: 188;
    stroke-dashoffset: 188;
    animation: draw-circle 0.6s ease-out 0.2s forwards;
}

.check-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: draw-check 0.4s ease-out 0.6s forwards;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--foreground);
    margin: 0 0 1rem 0;
}

.success-message {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    margin: 0 0 2rem 0;
}

.success-actions {
    display: flex;
    justify-content: center;
}

.success-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(0, 82, 255, 0.06);
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.success-link:hover {
    background: rgba(0, 82, 255, 0.1);
    border-color: rgba(0, 82, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================
   ERROR ALERT
   ========================================== */
.error-alert {
    margin-top: 1.5rem;
    padding: 1.125rem 1.5rem;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: var(--error);
    font-size: 0.9375rem;
    text-align: center;
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */
.page-footer {
    padding: 2rem var(--container-padding);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.hidden {
    display: none !important;
}

.fade-out {
    animation: fade-out 0.3s ease forwards;
}

.fade-in {
    animation: fade-in 0.5s ease forwards;
}

@keyframes fade-out {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1023px) {
    .main-container {
        padding: 2.5rem var(--container-padding);
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .trust-stats {
        flex-wrap: wrap;
    }
}

@media (max-width: 639px) {
    :root {
        --container-padding: 1.25rem;
    }

    .form-card {
        padding: 2.5rem 1.75rem;
        border-radius: 20px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .submit-button {
        height: 54px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}