/* Main container */
.wp-chatgpt-container {
    max-width: 95%;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Header styles */
.wp-chatgpt-header {
    text-align: left;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wp-chatgpt-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 3px 0;
    color: #333;
}

.wp-chatgpt-header h2 {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
    color: #666;
}

/* Input area */
.wp-chatgpt-input-area {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    gap: 10px;
}

.wp-chatgpt-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.wp-chatgpt-submit {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
 font-size: 0.8rem;
    width: 100%;
    transition: background 0.2s;
    white-space: nowrap;
}

/* Messages area */
.wp-chatgpt-messages {
    margin-top: 15px;
}

.wp-chatgpt-message {
    margin-bottom: 20px;
    line-height: 1.5;
    background: #E5E7EB;
    padding: 20px;
    border-radius: 4px;
}

.wp-chatgpt-message h1 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
}

.wp-chatgpt-message h2 {
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

.wp-chatgpt-message h3 {
    font-size: 1.2rem;
    margin: 15px 0 8px 0;
}

.wp-chatgpt-message ul,
.wp-chatgpt-message ol {
    padding-left: 20px;
    margin: 15px 0;
}

.wp-chatgpt-message li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.wp-chatgpt-message p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0;
}

/* Topic Selector */
.topic-select-wrapper {
    flex-direction: column;
    gap: 10px;
}

.topic-select {
    width: 100%;
    font-size: 1rem;
}

.topic-buttons {
    flex-direction: column;
}

.topic-button {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.95rem;
}

/* Response area */
.wp-chatgpt-response {
    font-size: 0.95rem;
    padding: 12px;
}

/* Loading animation */
@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Medium devices (tablets, 600px and up) */
@media (min-width: 600px) {
    .wp-chatgpt-container {
        max-width: 85%;
        padding: 20px;
    }
    
    .wp-chatgpt-input-area {
        flex-direction: row;
    }
    
    .wp-chatgpt-submit {
        width: auto;
        margin-left: 10px;
    }
    
    .topic-select-wrapper {
        flex-direction: row;
    }
    
    .topic-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .topic-button {
        width: auto;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .wp-chatgpt-container {
        max-width: 800px;
    }
    
    .wp-chatgpt-header h1 {
        font-size: 1.6rem;
    }
    
    .wp-chatgpt-message {
        padding: 30px 40px;
    }
    
    .wp-chatgpt-message h1 {
        font-size: 1.5rem;
    }
    
    .wp-chatgpt-message p,
    .wp-chatgpt-message li {
        font-size: 1rem;
    }
}

/* Extra small devices (phones, 480px and below) */
@media (max-width: 480px) {
    .wp-chatgpt-message {
        padding: 15px;
    }
    
    .wp-chatgpt-message ul,
    .wp-chatgpt-message ol {
        padding-left: 15px;
    }
    
    .wp-chatgpt-message li {
        font-size: 0.9rem;
    }
    
    .wp-chatgpt-header {
        padding: 10px 0;
    }
}

/* Orientation adjustments */
@media (orientation: landscape) and (max-width: 768px) {
    .wp-chatgpt-container {
        max-width: 90%;
        padding: 15px;
    }
    
    .wp-chatgpt-input-area {
        flex-direction: row;
    }
    
    .wp-chatgpt-submit {
        width: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .wp-chatgpt-message {
        border: 2px solid #000;
    }
    
    .wp-chatgpt-header {
        border-bottom-width: 2px;
    }
}




.topic-select-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.topic-select {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.random-generate-btn {
    padding: 10px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.random-generate-btn:hover {
    background: #45a049;
}

.random-generate-btn .dashicons {
    font-size: 16px;
    height: 16px;
    width: 16px;
}
.wp-chatgpt-topic-selector {
    margin-bottom: 20px;
}

.wp-chatgpt-topic-selector h3 {
    margin-bottom: 10px;
}

.topic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.topic-button {
    padding: 8px 15px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-button:hover {
    background: #e0e0e0;
}

.topic-button.random {
    background: #4CAF50;
    color: white;
    border-color: #45a049;
}

.topic-button.random:hover {
    background: #45a049;
}
