

.keyword-research-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.keyword-research-header h1 {
    color: #2c3338;
    margin-bottom: 10px;
}

.keyword-research-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

.keyword-research-form .form-group {
    display: flex;
    flex-direction: column;
}

.keyword-research-form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3338;
}

.keyword-research-form input,
.keyword-research-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.keyword-research-form button {
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.keyword-research-form button:hover {
    background: #135e96;
}

.keyword-research-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-card {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-card h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card .value {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
}

.keyword-research-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.keyword-research-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.keyword-research-table th,
.keyword-research-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.keyword-research-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3338;
    cursor: pointer;
    position: relative;
}

.keyword-research-table th:hover {
    background: #e9ecef;
}

.keyword-research-table th .tooltip-icon {
    margin-left: 5px;
    color: #6c757d;
    cursor: help;
}

.keyword-research-table .sort-asc::after {
    content: " ↑";
}

.keyword-research-table .sort-desc::after {
    content: " ↓";
}

.export-btn {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 30px;
    transition: background 0.3s;
}

.export-btn:hover {
    background: #218838;
}

.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.seo-article {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}

.seo-article h2 {
    color: #2c3338;
    margin-bottom: 20px;
}

.seo-article h3 {
    color: #2271b1;
    margin: 25px 0 15px 0;
}

.seo-article p {
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 15px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error {
    color: #dc3545;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .keyword-research-form {
        grid-template-columns: 1fr;
    }
    
    .keyword-research-summary {
        grid-template-columns: 1fr 1fr;
    }
    
    .keyword-research-table {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .keyword-research-summary {
        grid-template-columns: 1fr;
    }
    
    .keyword-research-container {
        padding: 15px;
    }
}