* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #4ade80 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 2.2em;
}

p {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 1.1em;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#urlInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: #16a34a;
}

#extractButton {
    padding: 12px 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

#extractButton:hover {
    transform: translateY(-2px);
}

#extractButton:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #16a34a;
    font-weight: 600;
}

.result {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.result h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

#ogImageContainer {
    text-align: center;
}

.og-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.og-url {
    word-break: break-all;
    background: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 14px;
}

.copy-button {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background: #218838;
}

.error {
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .input-section {
        flex-direction: column;
    }
    
    #extractButton {
        padding: 14px 20px;
    }
}