/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Layout */
.container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

/* Small screens (mobile) */
@media (max-width: 640px) {
    .container {
        padding: 0.75rem;
        gap: 1.5rem;
    }
}

/* Medium screens (tablet) */
@media (min-width: 641px) and (max-width: 1023px) {
    .container {
        padding: 1.5rem;
        gap: 2rem;
    }
}

/* Large screens (desktop) */
@media (min-width: 1024px) {
    .container {
        padding: 2rem;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem 3rem;
    }
}

/* Editor Panel */
.editor-panel {
    width: 100%;
    max-width: 500px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Small screens (mobile) */
@media (max-width: 640px) {
    .editor-panel {
        padding: 1rem;
        max-width: 100%;
    }

    .editor-panel h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-input {
        padding: 0.625rem;
        font-size: 0.875rem;
    }

    .form-textarea {
        height: 5rem;
    }
}

/* Medium screens (tablet) */
@media (min-width: 641px) and (max-width: 1023px) {
    .editor-panel {
        max-width: 450px;
        padding: 1.25rem;
    }
}

/* Large screens (desktop) */
@media (min-width: 1024px) {
    .editor-panel {
        width: 400px;
        flex-shrink: 0;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .editor-panel {
        width: 450px;
    }
}

.editor-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.editor-panel h2 i {
    color: #2563eb;
    font-size: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    font-family: inherit;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.form-textarea {
    height: 6rem;
    resize: vertical;
}

/* Button Styles */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.button-primary {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.button-primary:hover {
    background-color: #1d4ed8;
}

.button-success {
    background-color: #16a34a;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3);
}

.button-success:hover {
    background-color: #15803d;
}

.button i {
    font-size: 1.25rem;
}

.button-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.button-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Preview Area */
.preview-area {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #f3f4f6;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 640px) {
    .preview-area {
        padding: 10px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .preview-area {
        padding: 15px;
    }
}

.card {
    width: 600px;
    height: 600px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    margin: 50px;
}

/* Responsive card sizing for small screens */
@media (max-width: 640px) {
    .card {
        width: 90vw;
        height: 90vw;
        max-width: 380px;
        max-height: 380px;
        margin: 20px;
    }
}

/* Responsive card sizing for tablets */
@media (min-width: 641px) and (max-width: 1023px) {
    .card {
        width: 85vw;
        height: 85vw;
        max-width: 500px;
        max-height: 500px;
        margin: 30px;
    }
}

/* Hero Image */
.hero-image {
    position: relative;
    height: 280px;
    width: 100%;
    background-color: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-image {
        height: 180px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-image {
        height: 220px;
    }
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Floating Text */
.floating-text-wrapper {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    z-index: 10;
}

.floating-text-wrapper svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.floating-text {
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1;
    max-width: 100%;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding-bottom: 0.5rem;
    border-bottom: 4px solid #059669;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Branding */
.branding-row {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    padding: 1rem 1rem 0px;
    flex-shrink: 0;
}

.branding-logo {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

i.branding-logo {
    font-size: 2.5rem;
}

.branding-text-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 0.5rem 1.5rem 1.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.branding-tech-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.branding-text {
    display: none;
}

.branding-title {
    display: none;
}

.branding-subtitle {
    display: none;
}

/* Content */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 15px 1rem 1rem 1rem;
    flex-grow: 1;
}

@media (max-width: 640px) {
    .content-section {
        padding: 10px 0.7rem 0.7rem 0.7rem;
        gap: 0.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .content-section {
        padding: 12px 0.9rem 0.9rem 0.9rem;
        gap: 0.6rem;
    }
}

.featured-text {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.featured-by {
    color: #059669;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-style: italic;
}

.headline {
    font-size: 2rem;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0;
}

@media (max-width: 640px) {
    .headline {
        font-size: 1.3rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .headline {
        font-size: 1.6rem;
    }
}

.subheading {
    font-size: 0.95rem;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Footer */
.social-footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}

.social-footer ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.social-icon {
    background-color: #059669;
    border-radius: 50%;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-icon i {
    font-size: 0.8rem;
    color: white;
}

.social-text {
    font-size: 0.65rem;
    letter-spacing: 0.025em;
    color: #374151;
}

.social-text.uppercase {
    text-transform: uppercase;
}

/* Preview Label */
.preview-label {
    margin-top: 1.5rem;
    text-align: center;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.preview-label i {
    font-size: 1rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 20px;
    }
}