* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
}

.content {
    padding: 40px 30px;
}

.instructions {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #ff6b6b;
}

.instructions h2 {
    color: #c44569;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.instructions ol {
    margin-left: 20px;
    line-height: 2;
}

.instructions li {
    color: #2d3436;
    font-size: 1.05em;
}

.copy-section {
    margin: 30px 0;
}

.copy-btn {
    width: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.6);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Improve touch target size for mobile */
@media (pointer: coarse) {
    .copy-btn {
        min-height: 48px;
        -webkit-tap-highlight-color: rgba(17, 153, 142, 0.3);
        touch-action: manipulation;
    }

    .resource-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Prevent zoom on double tap for buttons on iOS */
.copy-btn, .resource-link {
    touch-action: manipulation;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.prompt-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #2d3436;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    cursor: text;
}

.prompt-box::-webkit-scrollbar {
    width: 8px;
}

.prompt-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.prompt-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.prompt-box::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.success-message {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d3436;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    display: none;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid #00b894;
}

.success-message.show {
    display: block;
}

.icon {
    font-size: 1.5em;
}

.resources {
    background: #f0f0f0;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.resources h3 {
    color: #2d3436;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.resource-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #667eea;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.resource-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: #667eea;
    color: white;
}

.badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    margin-left: 10px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }

    .content {
        padding: 25px 20px;
    }

    .instructions {
        padding: 20px;
    }

    .instructions h2 {
        font-size: 1.3em;
    }

    .copy-btn {
        font-size: 1.1em;
        padding: 18px 30px;
    }

    .prompt-box {
        font-size: 0.85em;
        padding: 20px;
        max-height: 400px;
    }

    .ai-tools-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .resource-link {
        width: 100%;
        justify-content: center;
    }

    .resources {
        padding: 20px;
    }
}

.footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

@media (max-width: 480px) {
    .footer {
        font-size: 0.8em;
        line-height: 1.5;
        padding: 15px 10px;
    }
}
