/**
 * Advanced Social Icons Widget Styles
 *
 * Professional social media icons with multiple layouts and effects
 *
 * @package Advanced_Widget_Kit
 * @since 2.1.0
 */

/* ========================================
   BASE STYLES
   ======================================== */

.awke-social-icons-container {
    width: 100%;
}

.awke-social-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
}

/* ========================================
   LAYOUT TYPES
   ======================================== */

/* Horizontal Layout */
.awke-social-icons-wrapper.awke-layout-horizontal {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Vertical Layout */
.awke-social-icons-wrapper.awke-layout-vertical {
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Grid Layout */
.awke-social-icons-wrapper.awke-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
}

/* ========================================
   SOCIAL ITEM & ICON
   ======================================== */

.awke-social-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.awke-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.awke-social-icon i,
.awke-social-icon svg {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.awke-social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   ICON SHAPES
   ======================================== */

.awke-shape-default .awke-social-icon {
    border-radius: 0;
}

.awke-shape-circle .awke-social-icon {
    border-radius: 50%;
}

.awke-shape-square .awke-social-icon {
    border-radius: 0;
}

.awke-shape-rounded .awke-social-icon {
    border-radius: 8px;
}

/* ========================================
   BRAND COLORS - WITH BACKGROUND
   ======================================== */

/* Brand colors with backgrounds (icon = white, bg = brand color) */
.awke-shape-circle .awke-social-icon.awke-brand-facebook,
.awke-shape-square .awke-social-icon.awke-brand-facebook,
.awke-shape-rounded .awke-social-icon.awke-brand-facebook,
.awke-shape-default .awke-social-icon.awke-brand-facebook {
    background-color: #1877f2;
}

.awke-shape-circle .awke-social-icon.awke-brand-twitter,
.awke-shape-square .awke-social-icon.awke-brand-twitter,
.awke-shape-rounded .awke-social-icon.awke-brand-twitter,
.awke-shape-default .awke-social-icon.awke-brand-twitter {
    background-color: #1da1f2;
}

.awke-shape-circle .awke-social-icon.awke-brand-instagram,
.awke-shape-square .awke-social-icon.awke-brand-instagram,
.awke-shape-rounded .awke-social-icon.awke-brand-instagram,
.awke-shape-default .awke-social-icon.awke-brand-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.awke-shape-circle .awke-social-icon.awke-brand-linkedin,
.awke-shape-square .awke-social-icon.awke-brand-linkedin,
.awke-shape-rounded .awke-social-icon.awke-brand-linkedin,
.awke-shape-default .awke-social-icon.awke-brand-linkedin {
    background-color: #0077b5;
}

.awke-shape-circle .awke-social-icon.awke-brand-youtube,
.awke-shape-square .awke-social-icon.awke-brand-youtube,
.awke-shape-rounded .awke-social-icon.awke-brand-youtube,
.awke-shape-default .awke-social-icon.awke-brand-youtube {
    background-color: #ff0000;
}

.awke-shape-circle .awke-social-icon.awke-brand-pinterest,
.awke-shape-square .awke-social-icon.awke-brand-pinterest,
.awke-shape-rounded .awke-social-icon.awke-brand-pinterest,
.awke-shape-default .awke-social-icon.awke-brand-pinterest {
    background-color: #bd081c;
}

.awke-shape-circle .awke-social-icon.awke-brand-tiktok,
.awke-shape-square .awke-social-icon.awke-brand-tiktok,
.awke-shape-rounded .awke-social-icon.awke-brand-tiktok,
.awke-shape-default .awke-social-icon.awke-brand-tiktok {
    background-color: #000000;
}

.awke-shape-circle .awke-social-icon.awke-brand-whatsapp,
.awke-shape-square .awke-social-icon.awke-brand-whatsapp,
.awke-shape-rounded .awke-social-icon.awke-brand-whatsapp,
.awke-shape-default .awke-social-icon.awke-brand-whatsapp {
    background-color: #25d366;
}

.awke-shape-circle .awke-social-icon.awke-brand-telegram,
.awke-shape-square .awke-social-icon.awke-brand-telegram,
.awke-shape-rounded .awke-social-icon.awke-brand-telegram,
.awke-shape-default .awke-social-icon.awke-brand-telegram {
    background-color: #0088cc;
}

.awke-shape-circle .awke-social-icon.awke-brand-snapchat,
.awke-shape-square .awke-social-icon.awke-brand-snapchat,
.awke-shape-rounded .awke-social-icon.awke-brand-snapchat,
.awke-shape-default .awke-social-icon.awke-brand-snapchat {
    background-color: #fffc00;
}

.awke-shape-circle .awke-social-icon.awke-brand-reddit,
.awke-shape-square .awke-social-icon.awke-brand-reddit,
.awke-shape-rounded .awke-social-icon.awke-brand-reddit,
.awke-shape-default .awke-social-icon.awke-brand-reddit {
    background-color: #ff4500;
}

.awke-shape-circle .awke-social-icon.awke-brand-github,
.awke-shape-square .awke-social-icon.awke-brand-github,
.awke-shape-rounded .awke-social-icon.awke-brand-github,
.awke-shape-default .awke-social-icon.awke-brand-github {
    background-color: #333333;
}

.awke-shape-circle .awke-social-icon.awke-brand-dribbble,
.awke-shape-square .awke-social-icon.awke-brand-dribbble,
.awke-shape-rounded .awke-social-icon.awke-brand-dribbble,
.awke-shape-default .awke-social-icon.awke-brand-dribbble {
    background-color: #ea4c89;
}

.awke-shape-circle .awke-social-icon.awke-brand-behance,
.awke-shape-square .awke-social-icon.awke-brand-behance,
.awke-shape-rounded .awke-social-icon.awke-brand-behance,
.awke-shape-default .awke-social-icon.awke-brand-behance {
    background-color: #1769ff;
}

.awke-shape-circle .awke-social-icon.awke-brand-vimeo,
.awke-shape-square .awke-social-icon.awke-brand-vimeo,
.awke-shape-rounded .awke-social-icon.awke-brand-vimeo,
.awke-shape-default .awke-social-icon.awke-brand-vimeo {
    background-color: #1ab7ea;
}

.awke-shape-circle .awke-social-icon.awke-brand-slack,
.awke-shape-square .awke-social-icon.awke-brand-slack,
.awke-shape-rounded .awke-social-icon.awke-brand-slack,
.awke-shape-default .awke-social-icon.awke-brand-slack {
    background-color: #4a154b;
}

.awke-shape-circle .awke-social-icon.awke-brand-discord,
.awke-shape-square .awke-social-icon.awke-brand-discord,
.awke-shape-rounded .awke-social-icon.awke-brand-discord,
.awke-shape-default .awke-social-icon.awke-brand-discord {
    background-color: #5865f2;
}

.awke-shape-circle .awke-social-icon.awke-brand-skype,
.awke-shape-square .awke-social-icon.awke-brand-skype,
.awke-shape-rounded .awke-social-icon.awke-brand-skype,
.awke-shape-default .awke-social-icon.awke-brand-skype {
    background-color: #00aff0;
}

.awke-shape-circle .awke-social-icon.awke-brand-spotify,
.awke-shape-square .awke-social-icon.awke-brand-spotify,
.awke-shape-rounded .awke-social-icon.awke-brand-spotify,
.awke-shape-default .awke-social-icon.awke-brand-spotify {
    background-color: #1db954;
}

.awke-shape-circle .awke-social-icon.awke-brand-twitch,
.awke-shape-square .awke-social-icon.awke-brand-twitch,
.awke-shape-rounded .awke-social-icon.awke-brand-twitch,
.awke-shape-default .awke-social-icon.awke-brand-twitch {
    background-color: #9146ff;
}

/* White icons when background shapes are enabled */
.awke-shape-circle .awke-social-icon i,
.awke-shape-circle .awke-social-icon svg,
.awke-shape-square .awke-social-icon i,
.awke-shape-square .awke-social-icon svg,
.awke-shape-rounded .awke-social-icon i,
.awke-shape-rounded .awke-social-icon svg,
.awke-shape-default .awke-social-icon i,
.awke-shape-default .awke-social-icon svg {
    color: #ffffff;
}

/* ========================================
   NO BACKGROUND MODE
   ======================================== */

.awke-no-background .awke-social-icon {
    padding: 5px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Brand colored icons (no background) */
.awke-no-background .awke-social-icon.awke-brand-facebook i,
.awke-no-background .awke-social-icon.awke-brand-facebook svg {
    color: #1877f2;
}

.awke-no-background .awke-social-icon.awke-brand-twitter i,
.awke-no-background .awke-social-icon.awke-brand-twitter svg {
    color: #1da1f2;
}

.awke-no-background .awke-social-icon.awke-brand-instagram i,
.awke-no-background .awke-social-icon.awke-brand-instagram svg {
    color: #e4405f;
}

.awke-no-background .awke-social-icon.awke-brand-linkedin i,
.awke-no-background .awke-social-icon.awke-brand-linkedin svg {
    color: #0077b5;
}

.awke-no-background .awke-social-icon.awke-brand-youtube i,
.awke-no-background .awke-social-icon.awke-brand-youtube svg {
    color: #ff0000;
}

.awke-no-background .awke-social-icon.awke-brand-pinterest i,
.awke-no-background .awke-social-icon.awke-brand-pinterest svg {
    color: #bd081c;
}

.awke-no-background .awke-social-icon.awke-brand-tiktok i,
.awke-no-background .awke-social-icon.awke-brand-tiktok svg {
    color: #000000;
}

.awke-no-background .awke-social-icon.awke-brand-whatsapp i,
.awke-no-background .awke-social-icon.awke-brand-whatsapp svg {
    color: #25d366;
}

.awke-no-background .awke-social-icon.awke-brand-telegram i,
.awke-no-background .awke-social-icon.awke-brand-telegram svg {
    color: #0088cc;
}

.awke-no-background .awke-social-icon.awke-brand-snapchat i,
.awke-no-background .awke-social-icon.awke-brand-snapchat svg {
    color: #fffc00;
}

.awke-no-background .awke-social-icon.awke-brand-reddit i,
.awke-no-background .awke-social-icon.awke-brand-reddit svg {
    color: #ff4500;
}

.awke-no-background .awke-social-icon.awke-brand-github i,
.awke-no-background .awke-social-icon.awke-brand-github svg {
    color: #333333;
}

.awke-no-background .awke-social-icon.awke-brand-dribbble i,
.awke-no-background .awke-social-icon.awke-brand-dribbble svg {
    color: #ea4c89;
}

.awke-no-background .awke-social-icon.awke-brand-behance i,
.awke-no-background .awke-social-icon.awke-brand-behance svg {
    color: #1769ff;
}

.awke-no-background .awke-social-icon.awke-brand-vimeo i,
.awke-no-background .awke-social-icon.awke-brand-vimeo svg {
    color: #1ab7ea;
}

.awke-no-background .awke-social-icon.awke-brand-slack i,
.awke-no-background .awke-social-icon.awke-brand-slack svg {
    color: #4a154b;
}

.awke-no-background .awke-social-icon.awke-brand-discord i,
.awke-no-background .awke-social-icon.awke-brand-discord svg {
    color: #5865f2;
}

.awke-no-background .awke-social-icon.awke-brand-skype i,
.awke-no-background .awke-social-icon.awke-brand-skype svg {
    color: #00aff0;
}

.awke-no-background .awke-social-icon.awke-brand-spotify i,
.awke-no-background .awke-social-icon.awke-brand-spotify svg {
    color: #1db954;
}

.awke-no-background .awke-social-icon.awke-brand-twitch i,
.awke-no-background .awke-social-icon.awke-brand-twitch svg {
    color: #9146ff;
}

/* Disable ripple effect in no-background mode */
.awke-no-background .awke-social-icon::before {
    display: none;
}

/* ========================================
   LABELS
   ======================================== */

.awke-social-label {
    margin-left: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.awke-hover-lift .awke-social-icon:hover {
    transform: translateY(-5px);
}

.awke-hover-scale .awke-social-icon:hover {
    transform: scale(1.15);
}

.awke-hover-rotate .awke-social-icon:hover {
    transform: rotate(360deg);
}

.awke-hover-bounce .awke-social-icon:hover {
    animation: awke-bounce 0.6s ease;
}

.awke-hover-pulse .awke-social-icon:hover {
    animation: awke-pulse 0.6s ease;
}

.awke-hover-grow .awke-social-icon:hover {
    transform: scale(1.2);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes awke-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes awke-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   RIPPLE EFFECT
   ======================================== */

.awke-social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 1;
}

.awke-social-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .awke-social-icons-wrapper.awke-layout-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .awke-social-icons-wrapper.awke-layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awke-social-icons-wrapper.awke-layout-horizontal {
        justify-content: center;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.awke-social-icon:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .awke-social-icon,
    .awke-social-label,
    .awke-social-item {
        transition: none;
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .awke-social-icons-container {
        display: none;
    }
}
