#gpg-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gpg-header {
    text-align: center;
    margin-bottom: 40px;
}

.gpg-header h2 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gpg-header p {
    color: #666;
    font-size: 16px;
}

.gpg-controls {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.gpg-section {
    margin-bottom: 25px;
}

.gpg-section:last-child {
    margin-bottom: 0;
}

.gpg-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gpg-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gpg-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

.gpg-btn:hover {
    border-color: #6c5ce7;
    color: #6c5ce7;
    transform: translateY(-2px);
}

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

.gpg-btn.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: white;
}

.gpg-generate-section {
    text-align: center;
    margin-bottom: 30px;
}

.gpg-generate-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #5f4dd1 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.gpg-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.gpg-generate-btn:active {
    transform: translateY(0);
}

.gpg-generate-btn svg {
    animation: rotate 0s linear;
}

.gpg-generate-btn.spinning svg {
    animation: rotate 0.6s linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.gpg-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.gpg-result-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.gpg-result-item:hover {
    border-color: #6c5ce7;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gpg-result-item:active {
    transform: translateY(-1px);
}

.gpg-result-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    word-break: break-word;
}

.gpg-result-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    color: #666;
    font-weight: 500;
}

.gpg-copied {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    animation: fadeInOut 1.5s ease;
    pointer-events: none;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Share Section Styles */
.gpg-share-section {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.gpg-share-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.gpg-share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gpg-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    -webkit-tap-highlight-color: transparent;
}

.gpg-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gpg-share-btn:active {
    transform: translateY(0);
}

.gpg-share-facebook {
    background: #1877f2;
}

.gpg-share-facebook:hover {
    background: #0d65d9;
}

.gpg-share-twitter {
    background: #1da1f2;
}

.gpg-share-twitter:hover {
    background: #0c8dd9;
}

.gpg-share-whatsapp {
    background: #25d366;
}

.gpg-share-whatsapp:hover {
    background: #1ebd57;
}

.gpg-share-copy {
    background: #64748b;
}

.gpg-share-copy:hover {
    background: #475569;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    #gpg-container {
        padding: 20px 15px;
    }

    .gpg-header h2 {
        font-size: 24px;
    }

    .gpg-header p {
        font-size: 14px;
    }
    
    .gpg-controls {
        padding: 20px;
    }
    
    .gpg-buttons {
        gap: 8px;
    }
    
    .gpg-btn {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: 80px;
    }

    .gpg-generate-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .gpg-results {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .gpg-result-item {
        padding: 12px;
    }

    .gpg-result-name {
        font-size: 16px;
    }

    .gpg-share-section {
        padding: 20px;
        margin-top: 40px;
    }

    .gpg-share-section h3 {
        font-size: 16px;
    }

    .gpg-share-buttons {
        gap: 10px;
    }

    .gpg-share-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
        justify-content: center;
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gpg-header h2 {
        font-size: 20px;
    }

    .gpg-results {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .gpg-share-btn {
        flex: 1 1 100%;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .gpg-btn:hover {
        transform: none;
    }
    
    .gpg-result-item:hover {
        transform: none;
        box-shadow: none;
    }
    
    .gpg-share-btn:hover {
        transform: none;
    }
}
