/* Frontend Styles for i3rby Importer Plugin */

.i3rby-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.i3rby-app-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.i3rby-app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.app-icon {
    text-align: center;
    margin-bottom: 15px;
}

.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.app-info h3 a {
    color: #333;
    text-decoration: none;
}

.app-info h3 a:hover {
    color: #0073aa;
}

.app-version,
.app-size,
.app-downloads,
.app-views {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

.app-excerpt {
    margin: 15px 0;
    color: #555;
    line-height: 1.5;
}

.download-button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.download-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.i3rby-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.i3rby-category-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.i3rby-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.category-icon {
    margin-bottom: 15px;
}

.category-icon img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.category-info h3 a {
    color: #333;
    text-decoration: none;
}

.category-info h3 a:hover {
    color: #0073aa;
}

.category-count {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Single app page styles */
.i3rby-app-details {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.i3rby-app-details .app-icon {
    text-align: center;
    margin-bottom: 30px;
}

.i3rby-app-details .app-icon img {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.i3rby-app-details .app-info {
    margin-bottom: 30px;
}

.i3rby-app-details .app-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.i3rby-app-details .app-info ul {
    list-style: none;
    padding: 0;
    background: #f9f9f9;
    border-radius: 5px;
    padding: 20px;
}

.i3rby-app-details .app-info li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.i3rby-app-details .app-info li:last-child {
    border-bottom: none;
}

.i3rby-app-details .app-info li strong {
    color: #333;
}

.i3rby-app-details .app-description {
    margin-bottom: 30px;
}

.i3rby-app-details .app-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.i3rby-app-details .app-description p {
    line-height: 1.6;
    color: #555;
}

.i3rby-app-details .app-download {
    text-align: center;
}

.i3rby-app-details .app-download h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.i3rby-app-details .download-button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.2s ease;
}

.i3rby-app-details .download-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .i3rby-apps-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .i3rby-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .i3rby-app-details {
        margin: 10px;
        padding: 20px;
    }

    .i3rby-app-details .app-icon img {
        width: 100px;
        height: 100px;
    }

    .i3rby-app-details .app-info li {
        flex-direction: column;
        text-align: left;
    }

    .i3rby-app-details .app-info li strong {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .i3rby-categories-grid {
        grid-template-columns: 1fr;
    }

    .i3rby-app-details {
        padding: 15px;
    }

    .i3rby-app-details .app-icon img {
        width: 80px;
        height: 80px;
    }
}