/* tool_favicon 専用スタイル */

/* ファイル情報 */
.file-info {
    color: #4dd0e1;
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 600;
}

/* プレビューセクション */
.preview-section {
    margin-bottom: 30px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.preview-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-image-container {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.preview-size {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.preview-dimensions {
    color: #999;
    font-size: 0.8em;
}

/* 生成ボタンセクション */
.generate-section {
    margin-bottom: 30px;
    text-align: center;
}

/* ダウンロード情報 */
.download-info {
    background: #e0f7fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #4dd0e1;
}

.download-info p {
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
}

.download-info p:last-child {
    margin-bottom: 0;
}

.download-note {
    color: #4a5568 !important;
    font-size: 0.9em;
    font-weight: 400 !important;
}

.download-section {
    text-align: center;
}

.download-section .btn-primary,
.download-section .btn-secondary {
    margin: 10px;
}

/* 使い方セクション */
.help-section {
    margin-top: 40px;
    padding: 30px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.help-section h3 {
    color: #2d3748;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4dd0e1;
}

.help-list {
    margin-left: 20px;
    color: #4a5568;
    line-height: 1.8;
}

.help-list li {
    margin-bottom: 10px;
}

/* サイズ情報 */
.size-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.size-badge {
    background: #4dd0e1;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .download-section .btn-primary,
    .download-section .btn-secondary {
        width: 100%;
        margin: 10px 0;
    }

    .size-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .preview-image-container {
        height: 80px;
    }

    .help-section {
        padding: 20px;
    }
}
